From 3e3b4baee27a437a613ccdb7f9e5bb5c34879b7c Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 20 Jul 2017 00:28:44 +0300 Subject: [PATCH] mapwidget.qml: remove some redundant "map." references Inside the Map object, properties can be referenced directly. Signed-off-by: Lubomir I. Ivanov --- mobile-widgets/qml/MapWidget.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml index 83ed48c4a..99cb7bf48 100644 --- a/mobile-widgets/qml/MapWidget.qml +++ b/mobile-widgets/qml/MapWidget.qml @@ -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 } }