summaryrefslogtreecommitdiffstats
path: root/app/openstreetmaps/MapPlugin.qml
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-09-09 00:00:12 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-09-17 17:44:08 -0700
commit462f009d423e6b158c6a442ffe1a66f7ed2ca847 (patch)
tree758ccb5c29f27296d93f86af2852cf5cb389a04c /app/openstreetmaps/MapPlugin.qml
parent42551ddcdf41cb1b0bff62a8798f49c7f034c16a (diff)
qml: add OpenStreetMaps map engine option
To allow testing in regions without easily accessible MapBox API keys add an ENABLE_OSM build option. Bug-AGL: SPEC-2667 Change-Id: I8ba72b774ed0ab1cf740dc0ebdb3048a6f403696 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/openstreetmaps/MapPlugin.qml')
-rw-r--r--app/openstreetmaps/MapPlugin.qml30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/openstreetmaps/MapPlugin.qml b/app/openstreetmaps/MapPlugin.qml
new file mode 100644
index 0000000..785fc80
--- /dev/null
+++ b/app/openstreetmaps/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: "osm"
+ PluginParameter {
+ name: "osm.mapping.host";
+ value: "https://a.tile.openstreetmap.org/"
+ }
+}
+