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 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
} }
} }