summaryrefslogtreecommitdiffstats
path: root/app/navigation.qml
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-09-08 23:36:12 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-09-09 01:07:33 -0700
commitfb68a3ddc7fcdf67c62fcde32914d4ed3936680a (patch)
treed7a07787c3efc11802b7a2dbfb449448802d7940 /app/navigation.qml
parent6a5be9c5a06cff021eef2460d8d6f873e10df582 (diff)
qml: breakout MapBox plugin references
To allow placement of other mapping engines make a common MapPlugin competent. Bug-AGL: SPEC-2667 Change-Id: I7bb4ae600304db104f39feeba3f35f342452584e Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/navigation.qml')
-rw-r--r--app/navigation.qml13
1 files changed, 2 insertions, 11 deletions
diff --git a/app/navigation.qml b/app/navigation.qml
index c4eba78..2ce1cb6 100644
--- a/app/navigation.qml
+++ b/app/navigation.qml
@@ -60,11 +60,7 @@ ApplicationWindow {
width: parent.width
height: parent.height
- plugin: Plugin {
- name: "mapbox"
- PluginParameter { name: "mapbox.access_token";
- value: fileOperation.getMapAccessToken() }
- }
+ plugin: MapPlugin { }
center: QtPositioning.coordinate(car_position_lat, car_position_lon)
zoomLevel: default_zoom_level
bearing: 0
@@ -214,12 +210,7 @@ ApplicationWindow {
RouteModel {
id: routeModel
objectName: "routeModel"
- plugin : Plugin {
- name: "mapbox"
- PluginParameter { name: "mapbox.access_token";
- value: fileOperation.getMapAccessToken()
- }
- }
+ plugin: MapPlugin { }
query: RouteQuery {
id: routeQuery
}