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 <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2017-07-19 23:50:14 +03:00 committed by Dirk Hohndel
parent b4740803a1
commit 6c640158e8

View file

@ -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];