mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mapwidget.qml: remove some redundant "map." references
Inside the Map object, properties can be referenced directly. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
a8f6c99fc0
commit
3e3b4baee2
1 changed files with 5 additions and 5 deletions
|
@ -30,7 +30,7 @@ Item {
|
||||||
property var newZoom: 1.0
|
property var newZoom: 1.0
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
map.activeMapType = map.supportedMapTypes[esriMapTypeIndexes.SATELLITE]
|
activeMapType = supportedMapTypes[esriMapTypeIndexes.SATELLITE]
|
||||||
}
|
}
|
||||||
|
|
||||||
MapItemView {
|
MapItemView {
|
||||||
|
@ -88,14 +88,14 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function animateMapTo(coord, zoom) {
|
function animateMapTo(coord, zoom) {
|
||||||
map.newCenter = coord
|
newCenter = coord
|
||||||
map.newZoom = zoom
|
newZoom = zoom
|
||||||
mapAnimation.restart()
|
mapAnimation.restart()
|
||||||
}
|
}
|
||||||
|
|
||||||
function centerOnMapLocation(mapLocation) {
|
function centerOnMapLocation(mapLocation) {
|
||||||
map.zoomLevel = map.defaultZoomOut
|
zoomLevel = defaultZoomOut
|
||||||
animateMapTo(mapLocation.coordinate, map.defaultZoomIn);
|
animateMapTo(mapLocation.coordinate, defaultZoomIn);
|
||||||
mapHelper.model.selectedUuid = mapLocation.uuid
|
mapHelper.model.selectedUuid = mapLocation.uuid
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue