summaryrefslogtreecommitdiff
path: root/examples/location
diff options
context:
space:
mode:
Diffstat (limited to 'examples/location')
-rw-r--r--examples/location/mapviewer/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/location/mapviewer/main.cpp b/examples/location/mapviewer/main.cpp
index 1d44a31b..3eedd8dd 100644
--- a/examples/location/mapviewer/main.cpp
+++ b/examples/location/mapviewer/main.cpp
@@ -102,8 +102,10 @@ int main(int argc, char *argv[])
if (!mapboxMapID.isEmpty())
parameters["mapbox.map_id"] = QString::fromLocal8Bit(mapboxMapID);
- if (!mapboxAccessToken.isEmpty())
+ if (!mapboxAccessToken.isEmpty()) {
parameters["mapbox.access_token"] = QString::fromLocal8Bit(mapboxAccessToken);
+ parameters["mapboxgl.access_token"] = QString::fromLocal8Bit(mapboxAccessToken);
+ }
if (!hereAppID.isEmpty())
parameters["here.app_id"] = QString::fromLocal8Bit(hereAppID);
if (!hereToken.isEmpty())