From 42551ddcdf41cb1b0bff62a8798f49c7f034c16a Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Sun, 8 Sep 2019 23:36:12 -0700 Subject: 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 --- app/navigation.qml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'app/navigation.qml') diff --git a/app/navigation.qml b/app/navigation.qml index c4eba78..2ce1cb6 100755 --- 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 } -- cgit 1.2.3-korg