summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-04-02 22:51:59 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-02 13:47:43 -0700
commit167db8fc18c38a2f5abb9ff1ede3710857af9066 (patch)
treea5a1f7be8411c420c0ca1c25825f91870010741d /mobile-widgets
parent48c032bb8ee3c2493783f3db3691f7f067f7782f (diff)
downloadsubsurface-167db8fc18c38a2f5abb9ff1ede3710857af9066.tar.gz
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 <neolit123@gmail.com>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/MapPage.qml4
1 files changed, 4 insertions, 0 deletions
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() {