Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.6.0
-
None
Description
This is a simple example based on the minimal map sample project. As shown in the video, the Map DragHandler reacts to all interactions performed on the pane. The DragHandler also prevents the use of flickables/scroll indicators on a pane or drawer above the map or MapView.
import QtQuick import QtLocation import QtQuick.Window import QtQuick.Controls Window { width: Qt.platform.os == "android" ? Screen.width : 512 height: Qt.platform.os == "android" ? Screen.height : 512 visible: true Plugin { id: mapPlugin name: "osm" } Map { id: map anchors.fill: parent plugin: mapPlugin zoomLevel: 14 DragHandler { id: drag target: null onActiveTranslationChanged: (delta) => map.pan(-delta.x, -delta.y) } } Pane { // you can also use other items id: drawer height: 200 width: 400 } }