diff options
Diffstat (limited to 'examples/location/planespotter')
-rw-r--r-- | examples/location/planespotter/planespotter.qml | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/examples/location/planespotter/planespotter.qml b/examples/location/planespotter/planespotter.qml index 59b8b00b..91d9e056 100644 --- a/examples/location/planespotter/planespotter.qml +++ b/examples/location/planespotter/planespotter.qml @@ -185,15 +185,7 @@ Window { } //! [CppPlane2] - onWidthChanged: { - if (width > 0) - mapOfEurope.fitViewportToGeoShape(viewOfEurope) - } - - onHeightChanged: { - if (height > 0) - mapOfEurope.fitViewportToGeoShape(viewOfEurope) - } + visibleRegion: viewOfEurope } Rectangle { |