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:
Lubomir I. Ivanov 2017-07-20 00:28:44 +03:00 committed by Dirk Hohndel
parent a8f6c99fc0
commit 3e3b4baee2

View file

@ -30,7 +30,7 @@ Item {
property var newZoom: 1.0
Component.onCompleted: {
map.activeMapType = map.supportedMapTypes[esriMapTypeIndexes.SATELLITE]
activeMapType = supportedMapTypes[esriMapTypeIndexes.SATELLITE]
}
MapItemView {
@ -88,14 +88,14 @@ Item {
}
function animateMapTo(coord, zoom) {
map.newCenter = coord
map.newZoom = zoom
newCenter = coord
newZoom = zoom
mapAnimation.restart()
}
function centerOnMapLocation(mapLocation) {
map.zoomLevel = map.defaultZoomOut
animateMapTo(mapLocation.coordinate, map.defaultZoomIn);
zoomLevel = defaultZoomOut
animateMapTo(mapLocation.coordinate, defaultZoomIn);
mapHelper.model.selectedUuid = mapLocation.uuid
}
}