From 6d81e19eae1ecd0fee7dae7a220b8d908df41839 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Fri, 27 Oct 2017 12:39:03 +0200 Subject: 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 --- mobile-widgets/qml/MapWidget.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile-widgets/qml') 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) -- cgit v1.2.3-70-g09d2