From 449c92801b7fee8537fa23c3f03f927cbb4cba5f Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Mon, 27 Nov 2017 16:13:48 +0200 Subject: 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 --- map-widget/qml/MapWidget.qml | 19 ------------------- 1 file changed, 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 @@ -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() } } -- cgit v1.2.3-70-g09d2