summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/MapWidget.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml
index f7b010c62..4645f00c7 100644
--- a/mobile-widgets/qml/MapWidget.qml
+++ b/mobile-widgets/qml/MapWidget.qml
@@ -3,14 +3,22 @@ import QtLocation 5.3
import QtPositioning 5.3
Item {
+
+ readonly property var esriMapTypeIndexes: { "STREET": 0, "SATELLITE": 1 };
+
Plugin {
id: mapPlugin
name: "esri"
}
Map {
+ id: map
anchors.fill: parent
plugin: mapPlugin
zoomLevel: 1
+
+ Component.onCompleted: {
+ map.activeMapType = map.supportedMapTypes[esriMapTypeIndexes.SATELLITE];
+ }
}
}