mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mapwidgethelper: change centerOnDiveSite()
Call setSelectedUuid() from C++ also center on coodinates instead on a MapLocation, as there is no point to pass the MapLocation object back to QML. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
f6e269c07a
commit
ff4924f650
2 changed files with 8 additions and 5 deletions
|
|
@ -153,9 +153,8 @@ Item {
|
|||
mapAnimationZoomOut.restart()
|
||||
}
|
||||
|
||||
function centerOnMapLocation(mapLocation) {
|
||||
mapHelper.model.setSelectedUuid(mapLocation.uuid, false)
|
||||
animateMapZoomIn(mapLocation.coordinate)
|
||||
function centerOnCoordinate(coord) {
|
||||
animateMapZoomIn(coord)
|
||||
}
|
||||
|
||||
function deselectMapLocation() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue