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>
This commit is contained in:
Lubomir I. Ivanov 2018-04-02 22:51:59 +03:00 committed by Dirk Hohndel
parent 48c032bb8e
commit 167db8fc18

View file

@ -30,6 +30,10 @@ Kirigami.Page {
} }
diveList.setCurrentDiveListIndex(idx, true) diveList.setCurrentDiveListIndex(idx, true)
} }
Component.onCompleted: {
mapWidget.map.zoomLevel = mapWidget.map.defaultZoomOut
mapWidget.map.center = mapWidget.map.defaultCenter
}
} }
function reloadMap() { function reloadMap() {