Browse Source

Use recommended mapReady signal

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

8
src/FlightMap/FlightMap.qml

@ -103,9 +103,11 @@ Map { @@ -103,9 +103,11 @@ Map {
on_ActiveVehicleCoordinateChanged: _possiblyCenterToVehiclePosition()
Component.onCompleted: {
updateActiveMapType()
_possiblyCenterToVehiclePosition()
onMapReadyChanged: {
if (_map.mapReady) {
updateActiveMapType()
_possiblyCenterToVehiclePosition()
}
}
Connections {

Loading…
Cancel
Save