diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2014-07-09 18:08:53 -0700 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2014-07-09 18:08:53 -0700 |
commit | cfbd9f24692b6d5b65d068dabe672cd42efa2d35 (patch) | |
tree | d72c0f564ec08cd1240488f0b53b14486fe84c99 /macosx | |
parent | e946ef99d00db6a91b5ecc88286e1ae00c6db8e1 (diff) | |
download | qtlocation-mapboxgl-cfbd9f24692b6d5b65d068dabe672cd42efa2d35.tar.gz |
move Linux & OS X to per-map access tokens
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/main.mm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/macosx/main.mm b/macosx/main.mm index 1568464691..d04da2b430 100644 --- a/macosx/main.mm +++ b/macosx/main.mm @@ -5,8 +5,6 @@ #import <Foundation/Foundation.h> int main() { - llmr::setMapboxAccessToken(mapbox_access_token); - GLFWView view; llmr::Map map(view); @@ -17,6 +15,7 @@ int main() { map.setDebug(settings.debug); // Load style + map.setAccessToken(mapbox_access_token); NSString *path = [[NSBundle mainBundle] pathForResource:@"style.min" ofType:@"js"]; NSString *json = [NSString stringWithContentsOfFile:path encoding:[NSString defaultCStringEncoding] |