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>
This commit is contained in:
Lubomir I. Ivanov 2017-07-24 16:17:37 +03:00 committed by Dirk Hohndel
parent 91302b3d8b
commit 747f3d8cab

View file

@ -32,6 +32,8 @@ Item {
activeMapType = mapType.SATELLITE
}
onZoomLevelChanged: mapHelper.calculateSmallCircleRadius(map.center)
MapItemView {
id: mapItemView
model: mapHelper.model