Browse Source

Merge pull request #2707 from pritamghanghas/map_center_fix

Fixed map centering buttons in flight view and flight editor.
QGC4.4
Don Gagne 9 years ago
parent
commit
9ff40d6a24
  1. 3
      src/FlightDisplay/FlightDisplayViewWidgets.qml
  2. 3
      src/MissionEditor/MissionEditor.qml

3
src/FlightDisplay/FlightDisplayViewWidgets.qml

@ -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
} }
} }
} }

3
src/MissionEditor/MissionEditor.qml

@ -502,8 +502,7 @@ QGCView {
onClicked: { onClicked: {
centerMapButton.hideDropDown() centerMapButton.hideDropDown()
editorMap.latitude = activeVehicle.latitude editorMap.center = activeVehicle.coordinate
editorMap.longitude = activeVehicle.longitude
} }
} }
} }

Loading…
Cancel
Save