From 2b38a194f630d7ac4310f137630bb1b3b1b9fcb9 Mon Sep 17 00:00:00 2001 From: jmkiley Date: Thu, 28 Mar 2019 10:15:53 -0700 Subject: test --- platform/ios/app/MBXAppDelegate.m | 2 +- platform/ios/app/MBXTestViewController.m | 7 ++-- platform/ios/app/Main.storyboard | 56 ++++++++++++++++++++++++++++++-- 3 files changed, 57 insertions(+), 8 deletions(-) diff --git a/platform/ios/app/MBXAppDelegate.m b/platform/ios/app/MBXAppDelegate.m index 9932356e6e..d8a2b8fa92 100644 --- a/platform/ios/app/MBXAppDelegate.m +++ b/platform/ios/app/MBXAppDelegate.m @@ -20,7 +20,7 @@ NSString * const MBXMapboxAccessTokenDefaultsKey = @"MBXMapboxAccessToken"; // the token. accessToken = [[NSUserDefaults standardUserDefaults] objectForKey:MBXMapboxAccessTokenDefaultsKey]; } - [MGLAccountManager setAccessToken:accessToken]; + [MGLAccountManager setAccessToken:@""]; #ifndef MGL_DISABLE_LOGGING [MGLLoggingConfiguration sharedConfiguration].loggingLevel = MGLLoggingLevelFault; #endif diff --git a/platform/ios/app/MBXTestViewController.m b/platform/ios/app/MBXTestViewController.m index f12da8d369..3f0496d196 100644 --- a/platform/ios/app/MBXTestViewController.m +++ b/platform/ios/app/MBXTestViewController.m @@ -69,10 +69,9 @@ point.title = [NSString stringWithFormat:@"%.f, %.f", coordinate.latitude, coordinate.longitude]; [pointAnnotations addObject:point]; } - [self.mapView addAnnotations:pointAnnotations]; - [_timer invalidate]; - _timer = [NSTimer scheduledTimerWithTimeInterval:5 target:self selector:@selector(updateCenter) userInfo:nil repeats:YES]; +// [_timer invalidate]; +// _timer = [NSTimer scheduledTimerWithTimeInterval:5 target:self selector:@selector(updateCenter) userInfo:nil repeats:YES]; } - (void)updateCenter { @@ -103,7 +102,7 @@ CGFloat hue = (CGFloat)annotation.coordinate.longitude / 100; annotationView.backgroundColor = [UIColor colorWithHue:hue saturation:0.5 brightness:1 alpha:1]; } - + [annotationView setHidden:YES]; return annotationView; } diff --git a/platform/ios/app/Main.storyboard b/platform/ios/app/Main.storyboard index f4e535a56c..3fa567d0c5 100644 --- a/platform/ios/app/Main.storyboard +++ b/platform/ios/app/Main.storyboard @@ -1,11 +1,11 @@ - + - + @@ -86,7 +86,7 @@