Browse Source

Use recommended mapReady signal

QGC4.4
Holden 3 years ago committed by Ramon Roche
parent
commit
89cd2856c0
  1. 4
      src/FlightMap/FlightMap.qml

4
src/FlightMap/FlightMap.qml

@ -103,10 +103,12 @@ Map {
on_ActiveVehicleCoordinateChanged: _possiblyCenterToVehiclePosition() on_ActiveVehicleCoordinateChanged: _possiblyCenterToVehiclePosition()
Component.onCompleted: { onMapReadyChanged: {
if (_map.mapReady) {
updateActiveMapType() updateActiveMapType()
_possiblyCenterToVehiclePosition() _possiblyCenterToVehiclePosition()
} }
}
Connections { Connections {
target: QGroundControl.settingsManager.flightMapSettings.mapType target: QGroundControl.settingsManager.flightMapSettings.mapType

Loading…
Cancel
Save