From 747f3d8cab5c9021a2f3f142e06ee3beaef164e8 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Mon, 24 Jul 2017 16:17:37 +0300 Subject: mapwidget.qml: call calculateSmallCircleRadius() on zoom changes Each time the zoom changes MapWidgetHelper::calculateSmallCircleRadius() is called, and the "small circle" radius is stored in both C++ and QML. On the C++ side this radius will be used to select multiple nearby dives. Signed-off-by: Lubomir I. Ivanov --- mobile-widgets/qml/MapWidget.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml index d2a2924d2..38c8fd081 100644 --- a/mobile-widgets/qml/MapWidget.qml +++ b/mobile-widgets/qml/MapWidget.qml @@ -32,6 +32,8 @@ Item { activeMapType = mapType.SATELLITE } + onZoomLevelChanged: mapHelper.calculateSmallCircleRadius(map.center) + MapItemView { id: mapItemView model: mapHelper.model -- cgit v1.2.3-70-g09d2