summaryrefslogtreecommitdiffstats
path: root/app/mapbox
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/mapbox
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/mapbox')
-rw-r--r--app/mapbox/MapPlugin.qml30
-rw-r--r--app/mapbox/mapbox.qrc5
2 files changed, 35 insertions, 0 deletions
diff --git a/app/mapbox/MapPlugin.qml b/app/mapbox/MapPlugin.qml
new file mode 100644
index 0000000..d0d3938
--- /dev/null
+++ b/app/mapbox/MapPlugin.qml
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import QtQuick 2.6
+import QtQuick.Layouts 1.1
+import QtQuick.Controls 2.0
+import QtLocation 5.9
+import QtPositioning 5.6
+
+Plugin {
+ name: "mapbox"
+ PluginParameter {
+ name: "mapbox.access_token";
+ value: fileOperation.getMapAccessToken()
+ }
+}
+
diff --git a/app/mapbox/mapbox.qrc b/app/mapbox/mapbox.qrc
new file mode 100644
index 0000000..9052f66
--- /dev/null
+++ b/app/mapbox/mapbox.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="/">
+ <file>MapPlugin.qml</file>
+ </qresource>
+</RCC>