7import QGroundControl.Controls
11 spacing: ScreenTools.defaultFontPixelWidth * 0.5
14 property var fitFunctions
15 property bool showMission: true
16 property bool showAllItems: true
18 QGCLabel { text: qsTr("Center map on:") }
22 Layout.fillWidth: true
27 fitFunctions.fitMapViewportToMissionItems()
32 text: qsTr("All items")
33 Layout.fillWidth: true
38 fitFunctions.fitMapViewportToAllItems()
44 Layout.fillWidth: true
48 map.center = fitFunctions.fitHomePosition()
54 Layout.fillWidth: true
55 enabled: globals.activeVehicle && globals.activeVehicle.coordinate.isValid
59 map.center = globals.activeVehicle.coordinate
64 text: qsTr("Current Location")
65 Layout.fillWidth: true
66 enabled: map.gcsPosition.isValid
70 map.center = map.gcsPosition
75 text: qsTr("Specified Location")
76 Layout.fillWidth: true
80 map.centerToSpecifiedLocation()