Grab-pull panning in mapping services does not work in QtQuick 2.0 and QtWebKit 3.0

  • The following simple .qml when run in Qt QmlScene will display a map from Bing maps or Esri online maps, but in both cases you cannot pan using the grab-pull method that works with the same service in a browser. Google Maps doesn't seem to display anything at all. The normal web-type controls on the page, i.e. the "zoom-in" slider of each service will work. Also, using the mouse wheel to zoom in and out works. The up, down, left and right, cursor keys will pan the map. It seems that the mouse button messages are not being passed through to the web page. This web page business is pretty much of a mystery to me, so I don't have much of an idea what is going on.

    I've also tried the same urls using QtQuick 1.0 and QtWebKit 1.0 in Qt Qmlviewer. The results are pretty much the same except for the circle control with the "N" in it at the top-right of Bing Maps. In WebKit 3.0 clicking on one of the direction arrows in the control will "pan" the map a few pixels, but holding the left mouse button down has no effect. In WebKit 1.0 holding the left mouse button down pans the map continuously.

    Thanks for any help or suggestions.

    import QtQuick 2.0
    import QtWebKit 3.0

    Rectangle {
    id: root
    width: 1800
    height: 900

    WebView {
        id: mapView
        anchors.fill: parent
        url: ""

    // url: ""
    // url: ""

Log in to reply