mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
b4740803a1
commit
6c640158e8
1 changed files with 4 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue