From 52f23614b34728ffea2dc7c2920a2bf6375c9458 Mon Sep 17 00:00:00 2001 From: Jesse Bounds Date: Fri, 2 Sep 2016 15:21:08 -0700 Subject: [PATCH] [ios] Remove iosapp test stub The PR to add filter predicates (#6049) added logic to apply some runtime styling to the iosapp as soon as the map finished loading. This removes that logic. --- platform/ios/app/MBXViewController.m | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m index bfe3f22382e..605d6b2da83 100644 --- a/platform/ios/app/MBXViewController.m +++ b/platform/ios/app/MBXViewController.m @@ -79,29 +79,6 @@ - (void)viewDidLoad self.debugLoggingEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:@"MGLMapboxMetricsDebugLoggingEnabled"]; } -- (void)mapViewDidFinishLoadingMap:(MGLMapView *)mapView -{ - [mapView setCenterCoordinate:CLLocationCoordinate2DMake(52.36, 4.86) zoomLevel:12 animated:NO]; - -#warning DEBUG CODE - - NSString *filePath = [[NSBundle bundleForClass:self.class] pathForResource:@"amsterdam" ofType:@"geojson"]; - NSURL *url = [NSURL fileURLWithPath:filePath]; - NSData *geoJSONData = [NSData dataWithContentsOfURL:url]; - MGLGeoJSONSource *source = [[MGLGeoJSONSource alloc] initWithSourceIdentifier:@"source" geoJSONData:geoJSONData]; - [self.mapView.style addSource:source]; - - MGLFillStyleLayer *parksLayer = [[MGLFillStyleLayer alloc] initWithLayerIdentifier:@"park-layer" sourceIdentifier:@"source"]; - parksLayer.fillColor = [UIColor redColor]; - parksLayer.predicate = [NSPredicate predicateWithFormat:@"name == 'Westerpark'"]; - [self.mapView.style addLayer:parksLayer]; - - MGLFillStyleLayer *singleParkLayer = [[MGLFillStyleLayer alloc] initWithLayerIdentifier:@"single-park-layer" sourceIdentifier:@"source"]; - singleParkLayer.fillColor = [UIColor greenColor]; - singleParkLayer.predicate = [NSPredicate predicateWithFormat:@"name == 'vondelpark'"]; - [self.mapView.style addLayer:singleParkLayer]; -} - - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated];