summaryrefslogtreecommitdiffstats
path: root/map-widget
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-27 16:13:48 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-27 22:59:22 +0100
commit449c92801b7fee8537fa23c3f03f927cbb4cba5f (patch)
tree7ef7767c2300dfcd4f75164e2fce93ab4416cee8 /map-widget
parent1bc91bfb670c927fff3af53fa5b941824e27f3e8 (diff)
downloadsubsurface-449c92801b7fee8537fa23c3f03f927cbb4cba5f.tar.gz
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>
Diffstat (limited to 'map-widget')
-rw-r--r--map-widget/qml/MapWidget.qml19
1 files changed, 0 insertions, 19 deletions
diff --git a/map-widget/qml/MapWidget.qml b/map-widget/qml/MapWidget.qml
index 0961edb86..7b122babe 100644
--- a/map-widget/qml/MapWidget.qml
+++ b/map-widget/qml/MapWidget.qml
@@ -112,15 +112,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 }
NumberAnimation { target: map; property: "zoomLevel"; to: map.newZoom; 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()
}
}