mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
48c032bb8e
commit
167db8fc18
1 changed files with 4 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue