From 4a0173bbd79f90a543dc51ebf15c20a3d30a8827 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Fri, 14 Oct 2016 19:50:21 -0400 Subject: [ios, macos] Deprecate -[MGLMapViewDelegate mapView:alphaForShapeAnnotation:] (#6706) --- platform/ios/app/MBXViewController.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'platform/ios/app') diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m index 0f62e65ce1..5a0854f6bf 100644 --- a/platform/ios/app/MBXViewController.m +++ b/platform/ios/app/MBXViewController.m @@ -1123,11 +1123,6 @@ typedef NS_ENUM(NSInteger, MBXSettingsMiscellaneousRows) { return YES; } -- (CGFloat)mapView:(__unused MGLMapView *)mapView alphaForShapeAnnotation:(MGLShape *)annotation -{ - return ([annotation isKindOfClass:[MGLPolygon class]] ? 0.5 : 1.0); -} - - (UIColor *)mapView:(__unused MGLMapView *)mapView strokeColorForShapeAnnotation:(MGLShape *)annotation { return ([annotation isKindOfClass:[MGLPolyline class]] ? [UIColor purpleColor] : [UIColor blackColor]); @@ -1135,7 +1130,8 @@ typedef NS_ENUM(NSInteger, MBXSettingsMiscellaneousRows) { - (UIColor *)mapView:(__unused MGLMapView *)mapView fillColorForPolygonAnnotation:(__unused MGLPolygon *)annotation { - return (annotation.pointCount > 3 ? [UIColor greenColor] : [UIColor redColor]); + UIColor *color = annotation.pointCount > 3 ? [UIColor greenColor] : [UIColor redColor]; + return [color colorWithAlphaComponent:0.5]; } - (void)mapView:(__unused MGLMapView *)mapView didChangeUserTrackingMode:(MGLUserTrackingMode)mode animated:(__unused BOOL)animated -- cgit v1.2.1