summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-10-27 12:39:03 +0200
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2017-10-29 08:26:11 +0100
commit6d81e19eae1ecd0fee7dae7a220b8d908df41839 (patch)
treef63f0eaa98ef61a5ee6b81e1029ef60924c68086 /mobile-widgets
parent4357e06ba0e8956856117c9df67296a354fcda4e (diff)
downloadsubsurface-6d81e19eae1ecd0fee7dae7a220b8d908df41839.tar.gz
map widget: start with normal zoomlevel
Commit 344d9765936 resulted in the start of Subsurface with a map of the whole world. The user has to zoom in (assuming the case that the first selected dive has a position), in evenry session. This is solved by setting the zoomlevel at startup at the default value. Ok, this results in a map of central London, UK, when starting Subsurface with a dive without location, but is this as good as any map. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/MapWidget.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml
index c467b9b21..b1e438ad2 100644
--- a/mobile-widgets/qml/MapWidget.qml
+++ b/mobile-widgets/qml/MapWidget.qml
@@ -25,7 +25,7 @@ Item {
Map {
id: map
anchors.fill: parent
- zoomLevel: 1
+ zoomLevel: defaultZoomIn
property var mapType
readonly property var defaultCenter: QtPositioning.coordinate(0, 0)