From 167db8fc18c38a2f5abb9ff1ede3710857af9066 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Mon, 2 Apr 2018 22:51:59 +0300 Subject: mapwidget-mobile: initialize the map to [0,0] Instead of showing the map zoomed over London by default, initialize the center at [0,0] and show the whole globe. Signed-off-by: Lubomir I. Ivanov --- mobile-widgets/qml/MapPage.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mobile-widgets/qml/MapPage.qml b/mobile-widgets/qml/MapPage.qml index fdfcfa213..f2d64215c 100644 --- a/mobile-widgets/qml/MapPage.qml +++ b/mobile-widgets/qml/MapPage.qml @@ -30,6 +30,10 @@ Kirigami.Page { } diveList.setCurrentDiveListIndex(idx, true) } + Component.onCompleted: { + mapWidget.map.zoomLevel = mapWidget.map.defaultZoomOut + mapWidget.map.center = mapWidget.map.defaultCenter + } } function reloadMap() { -- cgit v1.2.3-70-g09d2