summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/MapWidget.qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml/MapWidget.qml')
-rw-r--r--mobile-widgets/qml/MapWidget.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml
index b1e438ad2..2a3283482 100644
--- a/mobile-widgets/qml/MapWidget.qml
+++ b/mobile-widgets/qml/MapWidget.qml
@@ -37,8 +37,13 @@ Item {
property real newZoom: 1.0
property real newZoomOut: 1.0
property var clickCoord: QtPositioning.coordinate(0, 0)
+ property bool isReady: false
- onZoomLevelChanged: mapHelper.calculateSmallCircleRadius(map.center)
+ Component.onCompleted: isReady = true
+ onZoomLevelChanged: {
+ if (isReady)
+ mapHelper.calculateSmallCircleRadius(map.center)
+ }
MapItemView {
id: mapItemView