summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/MapWidget.qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml/MapWidget.qml')
-rw-r--r--mobile-widgets/qml/MapWidget.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml
index 99cb7bf48..2d6319dd6 100644
--- a/mobile-widgets/qml/MapWidget.qml
+++ b/mobile-widgets/qml/MapWidget.qml
@@ -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)
+ }
}
}