summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/location/planespotter/planespotter.qml10
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 {