diff --git a/src/FlightDisplay/FlightDisplayViewMap.qml b/src/FlightDisplay/FlightDisplayViewMap.qml index 2a6243f..c6d9f93 100644 --- a/src/FlightDisplay/FlightDisplayViewMap.qml +++ b/src/FlightDisplay/FlightDisplayViewMap.qml @@ -29,9 +29,11 @@ FlightMap { mapName: _mapName allowGCSLocationCenter: !userPanned allowVehicleLocationCenter: !_keepVehicleCentered + planView: false property alias scaleState: mapScale.state + // The following properties must be set by the consumer property var missionController property var geoFenceController property var rallyPointController diff --git a/src/FlightMap/FlightMap.qml b/src/FlightMap/FlightMap.qml index 014387b..f6ec45f 100644 --- a/src/FlightMap/FlightMap.qml +++ b/src/FlightMap/FlightMap.qml @@ -38,6 +38,7 @@ Map { property bool allowVehicleLocationCenter: false ///< true: map will center/zoom to vehicle location one time property bool firstGCSPositionReceived: false ///< true: first gcs position update was responded to property bool firstVehiclePositionReceived: false ///< true: first vehicle position update was responded to + property bool planView: false ///< true: map being using for Plan view, items should be draggable readonly property real maxZoomLevel: 20 diff --git a/src/PlanView/SimpleItemMapVisual.qml b/src/PlanView/SimpleItemMapVisual.qml index 0487a97..f78bcb4 100644 --- a/src/PlanView/SimpleItemMapVisual.qml +++ b/src/PlanView/SimpleItemMapVisual.qml @@ -62,7 +62,7 @@ Item { Component.onCompleted: { showItemVisuals() - if (_missionItem.isCurrentItem) { + if (_missionItem.isCurrentItem && map.planView) { showDragArea() } }