Commit 300cd31c authored by DonLakeFlyer's avatar DonLakeFlyer

Disable waypoint drag in Fly view

parent 0a745de8
......@@ -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
......@@ -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
......@@ -62,7 +62,7 @@ Item {
Component.onCompleted: {
if (_missionItem.isCurrentItem) {
if (_missionItem.isCurrentItem && map.planView) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment