summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2014-07-09 18:08:53 -0700
committerJustin R. Miller <incanus@codesorcery.net>2014-07-09 18:08:53 -0700
commitcfbd9f24692b6d5b65d068dabe672cd42efa2d35 (patch)
treed72c0f564ec08cd1240488f0b53b14486fe84c99 /linux
parente946ef99d00db6a91b5ecc88286e1ae00c6db8e1 (diff)
downloadqtlocation-mapboxgl-cfbd9f24692b6d5b65d068dabe672cd42efa2d35.tar.gz
move Linux & OS X to per-map access tokens
Diffstat (limited to 'linux')
-rw-r--r--linux/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/main.cpp b/linux/main.cpp
index 00732dfcb0..eee7147503 100644
--- a/linux/main.cpp
+++ b/linux/main.cpp
@@ -52,8 +52,6 @@ int main(int argc, char *argv[]) {
std::stringstream stylejson;
stylejson << stylefile.rdbuf();
- llmr::setMapboxAccessToken(mapbox_access_token);
-
view = new GLFWView();
llmr::Map map(*view);
@@ -64,6 +62,7 @@ int main(int argc, char *argv[]) {
map.setDebug(settings.debug);
// Load style
+ map.setAccessToken(mapbox_access_token);
map.setStyleJSON(stylejson.str());
int ret = view->run();