diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-24 16:17:37 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | 747f3d8cab5c9021a2f3f142e06ee3beaef164e8 (patch) | |
tree | 2d82866300294374eceaf802d984f0cff0436cb7 /mobile-widgets/qml/MapWidget.qml | |
parent | 91302b3d8b9410da050a97d115e816907605410f (diff) | |
download | subsurface-747f3d8cab5c9021a2f3f142e06ee3beaef164e8.tar.gz |
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 <neolit123@gmail.com>
Diffstat (limited to 'mobile-widgets/qml/MapWidget.qml')
-rw-r--r-- | mobile-widgets/qml/MapWidget.qml | 2 |
1 files changed, 2 insertions, 0 deletions
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 |