diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-19 23:50:14 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | 6c640158e8c43e8aa817fdbdce0c8ac2bfc74a31 (patch) | |
tree | e00eed68827517d64ea9d670a2373c9d73d02308 /mobile-widgets/qml/MapWidget.qml | |
parent | b4740803a1b71d27146df0b13460c222cf2e2ca8 (diff) | |
download | subsurface-6c640158e8c43e8aa817fdbdce0c8ac2bfc74a31.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/qml/MapWidget.qml')
-rw-r--r-- | mobile-widgets/qml/MapWidget.qml | 5 |
1 files changed, 4 insertions, 1 deletions
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]; |