mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
91302b3d8b
commit
747f3d8cab
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ Item {
|
|||
activeMapType = mapType.SATELLITE
|
||||
}
|
||||
|
||||
onZoomLevelChanged: mapHelper.calculateSmallCircleRadius(map.center)
|
||||
|
||||
MapItemView {
|
||||
id: mapItemView
|
||||
model: mapHelper.model
|
||||
|
|
Loading…
Add table
Reference in a new issue