Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 52f2361

Browse files
committed
[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.
1 parent aff278c commit 52f2361

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

platform/ios/app/MBXViewController.m

-23
Original file line numberDiff line numberDiff line change
@@ -79,29 +79,6 @@ - (void)viewDidLoad
7979
self.debugLoggingEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:@"MGLMapboxMetricsDebugLoggingEnabled"];
8080
}
8181

82-
- (void)mapViewDidFinishLoadingMap:(MGLMapView *)mapView
83-
{
84-
[mapView setCenterCoordinate:CLLocationCoordinate2DMake(52.36, 4.86) zoomLevel:12 animated:NO];
85-
86-
#warning DEBUG CODE
87-
88-
NSString *filePath = [[NSBundle bundleForClass:self.class] pathForResource:@"amsterdam" ofType:@"geojson"];
89-
NSURL *url = [NSURL fileURLWithPath:filePath];
90-
NSData *geoJSONData = [NSData dataWithContentsOfURL:url];
91-
MGLGeoJSONSource *source = [[MGLGeoJSONSource alloc] initWithSourceIdentifier:@"source" geoJSONData:geoJSONData];
92-
[self.mapView.style addSource:source];
93-
94-
MGLFillStyleLayer *parksLayer = [[MGLFillStyleLayer alloc] initWithLayerIdentifier:@"park-layer" sourceIdentifier:@"source"];
95-
parksLayer.fillColor = [UIColor redColor];
96-
parksLayer.predicate = [NSPredicate predicateWithFormat:@"name == 'Westerpark'"];
97-
[self.mapView.style addLayer:parksLayer];
98-
99-
MGLFillStyleLayer *singleParkLayer = [[MGLFillStyleLayer alloc] initWithLayerIdentifier:@"single-park-layer" sourceIdentifier:@"source"];
100-
singleParkLayer.fillColor = [UIColor greenColor];
101-
singleParkLayer.predicate = [NSPredicate predicateWithFormat:@"name == 'vondelpark'"];
102-
[self.mapView.style addLayer:singleParkLayer];
103-
}
104-
10582
- (void)viewDidAppear:(BOOL)animated
10683
{
10784
[super viewDidAppear:animated];

0 commit comments

Comments
 (0)