diff options
author | Brad Leege <bleege@gmail.com> | 2015-04-24 16:09:50 -0500 |
---|---|---|
committer | Brad Leege <bleege@gmail.com> | 2015-04-24 16:09:50 -0500 |
commit | f96046103f3800b95e80753f4b63435d4946fcd0 (patch) | |
tree | 0c50aaaa5726b4d0fa3e7b3808d855124a187d01 /platform | |
parent | 591c63286b6471a6c769eb17d8e1b16c698a4e11 (diff) | |
download | qtlocation-mapboxgl-f96046103f3800b95e80753f4b63435d4946fcd0.tar.gz |
#1225 - Starting Mapbox Events at shared instance setup time
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ios/MapboxGL.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/ios/MapboxGL.m b/platform/ios/MapboxGL.m index 0c88128215..7c542cb363 100644 --- a/platform/ios/MapboxGL.m +++ b/platform/ios/MapboxGL.m @@ -2,6 +2,7 @@ #import "MapboxGL.h" #import "NSProcessInfo+MGLAdditions.h" +#import "MGLMapboxEvents.h" @interface MapboxGL() @@ -24,6 +25,7 @@ static MapboxGL *_sharedManager; void (^setupBlock)() = ^{ _sharedManager = [[self alloc] init]; _sharedManager.accessToken = token; + [MGLMapboxEvents setToken:token]; }; if ( ! [[NSThread currentThread] isMainThread]) { dispatch_sync(dispatch_get_main_queue(), ^{ |