mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mapwidget.qml: add deselectMapLocation()
When called this function will zoom-out the map and set it's center to (0, 0) Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
3e3b4baee2
commit
23c56b3c31
1 changed files with 6 additions and 1 deletions
|
@ -95,8 +95,13 @@ Item {
|
|||
|
||||
function centerOnMapLocation(mapLocation) {
|
||||
zoomLevel = defaultZoomOut
|
||||
animateMapTo(mapLocation.coordinate, defaultZoomIn);
|
||||
animateMapTo(mapLocation.coordinate, defaultZoomIn)
|
||||
mapHelper.model.selectedUuid = mapLocation.uuid
|
||||
}
|
||||
|
||||
function deselectMapLocation() {
|
||||
mapHelper.model.selectedUuid = 0
|
||||
animateMapTo(defaultCenter, defaultZoomOut)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue