Commit 7b2f3706 authored by Pritam Ghanghas's avatar Pritam Ghanghas

Fixed map centring buttons in flight view and flight editor.

parent 5819709f
...@@ -233,8 +233,7 @@ Item { ...@@ -233,8 +233,7 @@ Item {
onClicked: { onClicked: {
_dropButtonsExclusiveGroup.current = null _dropButtonsExclusiveGroup.current = null
_flightMap.latitude = activeVehicle.latitude _flightMap.center = activeVehicle.coordinate
_flightMap.longitude = activeVehicle.longitude
} }
} }
} }
......
...@@ -502,8 +502,7 @@ QGCView { ...@@ -502,8 +502,7 @@ QGCView {
onClicked: { onClicked: {
centerMapButton.hideDropDown() centerMapButton.hideDropDown()
editorMap.latitude = activeVehicle.latitude editorMap.center = activeVehicle.coordinate
editorMap.longitude = activeVehicle.longitude
} }
} }
} }
......
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