mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mapwidget.qml: remove unused zoom-out function
The zoom out function is no longer used as we don't zoom out when a dive doesn't have dive site coordinates. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
1bc91bfb67
commit
449c92801b
1 changed files with 0 additions and 19 deletions
|
@ -111,15 +111,6 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
ParallelAnimation {
|
||||
id: mapAnimationZoomOut
|
||||
NumberAnimation { target: map; property: "zoomLevel"; from: map.zoomLevel; to: map.newZoom; duration: 3000 }
|
||||
SequentialAnimation {
|
||||
PauseAnimation { duration: 2000 }
|
||||
CoordinateAnimation { target: map; property: "center"; to: map.newCenter; duration: 2000 }
|
||||
}
|
||||
}
|
||||
|
||||
ParallelAnimation {
|
||||
id: mapAnimationClick
|
||||
CoordinateAnimation { target: map; property: "center"; to: map.newCenter; duration: 500 }
|
||||
|
@ -141,20 +132,12 @@ Item {
|
|||
mapAnimationClick.restart()
|
||||
}
|
||||
|
||||
function animateMapZoomOut() {
|
||||
newCenter = defaultCenter
|
||||
newZoom = defaultZoomOut
|
||||
mapAnimationZoomIn.stop()
|
||||
mapAnimationZoomOut.restart()
|
||||
}
|
||||
|
||||
function pointIsVisible(pt) {
|
||||
return !isNaN(pt.x)
|
||||
}
|
||||
|
||||
function stopZoomAnimations() {
|
||||
mapAnimationZoomIn.stop()
|
||||
mapAnimationZoomOut.stop()
|
||||
}
|
||||
|
||||
function centerOnCoordinate(coord) {
|
||||
|
@ -180,7 +163,6 @@ Item {
|
|||
zoomLevel = zoomStored
|
||||
newZoom = zoomStored
|
||||
mapAnimationZoomIn.restart()
|
||||
mapAnimationZoomOut.stop()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -225,7 +207,6 @@ Item {
|
|||
zoomLevel = zoomStored
|
||||
center = centerStored
|
||||
mapAnimationZoomIn.restart()
|
||||
mapAnimationZoomOut.stop()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue