Browse Source

Merge pull request #4785 from DonLakeFlyer/FollowVehicleMap

Turn off flick/pan gestures on map when follow vehicle set
QGC4.4
Gus Grubba 8 years ago committed by GitHub
parent
commit
6eab031596
  1. 6
      src/FlightDisplay/FlightDisplayViewMap.qml

6
src/FlightDisplay/FlightDisplayViewMap.qml

@ -27,6 +27,10 @@ FlightMap { @@ -27,6 +27,10 @@ FlightMap {
anchors.fill: parent
mapName: _mapName
gesture.acceptedGestures: _followVehicle ?
MapGestureArea.PinchGesture :
MapGestureArea.PinchGesture | MapGestureArea.PanGesture | MapGestureArea.FlickGesture
property alias missionController: missionController
property var flightWidgets
property var rightPanelWidth
@ -39,6 +43,8 @@ FlightMap { @@ -39,6 +43,8 @@ FlightMap {
property int _retaskSequence: 0
property real _toolButtonTopMargin: parent.height - ScreenTools.availableHeight + (ScreenTools.defaultFontPixelHeight / 2)
property bool followVehicleConnection: _followVehicle ///< Only use to create connection on
Component.onCompleted: {
QGroundControl.flightMapPosition = center
QGroundControl.flightMapZoom = zoomLevel

Loading…
Cancel
Save