summaryrefslogtreecommitdiff
path: root/platform/ios/app
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2016-09-02 15:21:08 -0700
committerJesse Bounds <jesse@rebounds.net>2016-09-02 15:37:13 -0700
commit52f23614b34728ffea2dc7c2920a2bf6375c9458 (patch)
treef23e8d89782c93f3b165c06a7871ad5b015f3d27 /platform/ios/app
parentaff278ce52957f1d58365ca0a4e2945b42d22a14 (diff)
downloadqtlocation-mapboxgl-52f23614b34728ffea2dc7c2920a2bf6375c9458.tar.gz
[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.
Diffstat (limited to 'platform/ios/app')
-rw-r--r--platform/ios/app/MBXViewController.m23
1 files changed, 0 insertions, 23 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m
index bfe3f22382..605d6b2da8 100644
--- a/platform/ios/app/MBXViewController.m
+++ b/platform/ios/app/MBXViewController.m
@@ -79,29 +79,6 @@ static NSString * const MBXViewControllerAnnotationViewReuseIdentifer = @"MBXVie
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];