summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/MapWidget.qml
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-20 00:28:44 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commit3e3b4baee27a437a613ccdb7f9e5bb5c34879b7c (patch)
treea4e14188d7ecb3eb7def8db154907b402d980f58 /mobile-widgets/qml/MapWidget.qml
parenta8f6c99fc0f519760c0632626b4d52eac8d2410d (diff)
downloadsubsurface-3e3b4baee27a437a613ccdb7f9e5bb5c34879b7c.tar.gz
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>
Diffstat (limited to 'mobile-widgets/qml/MapWidget.qml')
-rw-r--r--mobile-widgets/qml/MapWidget.qml10
1 files 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
}
}