summaryrefslogtreecommitdiff
path: root/macosx
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 /macosx
parente946ef99d00db6a91b5ecc88286e1ae00c6db8e1 (diff)
downloadqtlocation-mapboxgl-cfbd9f24692b6d5b65d068dabe672cd42efa2d35.tar.gz
move Linux & OS X to per-map access tokens
Diffstat (limited to 'macosx')
-rw-r--r--macosx/main.mm3
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]