summaryrefslogtreecommitdiff
path: root/examples/location
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-11-18 12:35:21 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-01-30 11:45:52 +0000
commit9a2573ac5d2f91922eb376741ac0194271ca979f (patch)
tree8cf65248ff7ac683fccb380d095ce264826859a1 /examples/location
parent4f338577a8dba92e69e8eea23d255d46e52c9c85 (diff)
downloadqtlocation-9a2573ac5d2f91922eb376741ac0194271ca979f.tar.gz
Mapbox GL plugin for QtLocation
Add Mapbox GL as a plugin for rendering vector tiles using OpenGL. Patch by: - Bruno de Oliveira Abinader <bruno@mapbox.com> - Thiago Marcos P. Santos <thiago@mapbox.com> Change-Id: I1671ae4dba0891e280a327543f15e73de1df385d Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
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())