summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/MapWidget.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml
index 5fe941792..ce057d63e 100644
--- a/mobile-widgets/qml/MapWidget.qml
+++ b/mobile-widgets/qml/MapWidget.qml
@@ -60,8 +60,8 @@ Item {
}
}
- function centerOnCoordinates(latitude, longitude) {
- map.newCenter = QtPositioning.coordinate(latitude, longitude);
+ function centerOnCoordinate(coordinate) {
+ map.newCenter = coordinate;
map.zoomLevel = 2;
mapAnimation.restart();
}