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.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml
index 7249ed632..ddfd2938c 100644
--- a/mobile-widgets/qml/MapWidget.qml
+++ b/mobile-widgets/qml/MapWidget.qml
@@ -70,10 +70,11 @@ Item {
}
}
- function centerOnCoordinate(coordinate) {
- map.newCenter = coordinate;
+ function centerOnMapLocation(mapLocation) {
+ map.newCenter = mapLocation.coordinate;
map.zoomLevel = 2;
mapAnimation.restart();
+ mapHelper.model.selectedUuid = mapLocation.uuid;
}
}
}