From 6c640158e8c43e8aa817fdbdce0c8ac2bfc74a31 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Wed, 19 Jul 2017 23:50:14 +0300 Subject: mapwidget.qml: add some properties for zoom and center These properties will be used when zooming-in on a map location or when zooming out if no map location is selected. Signed-off-by: Lubomir I. Ivanov --- mobile-widgets/qml/MapWidget.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml index ddfd2938c..b8f8b00b9 100644 --- a/mobile-widgets/qml/MapWidget.qml +++ b/mobile-widgets/qml/MapWidget.qml @@ -24,7 +24,10 @@ Item { plugin: mapPlugin zoomLevel: 1 - property var newCenter: QtPositioning.coordinate(0, 0); + readonly property var defaultCenter: QtPositioning.coordinate(0, 0); + readonly property var defaultZoomIn: 17.0; + property var newCenter: defaultCenter; + property var newZoom: 1.0; Component.onCompleted: { map.activeMapType = map.supportedMapTypes[esriMapTypeIndexes.SATELLITE]; -- cgit v1.2.3-70-g09d2