summaryrefslogtreecommitdiff
path: root/platform/ios/app
diff options
context:
space:
mode:
authorJason Wray <friedbunny@users.noreply.github.com>2016-10-14 19:50:21 -0400
committerGitHub <noreply@github.com>2016-10-14 19:50:21 -0400
commit4a0173bbd79f90a543dc51ebf15c20a3d30a8827 (patch)
treee18746ee592dae0caf1c1c18f9e0742fd6eff500 /platform/ios/app
parent0a8858f2da4f637fbf8ae7d3f5ffe4640d3e0c80 (diff)
downloadqtlocation-mapboxgl-4a0173bbd79f90a543dc51ebf15c20a3d30a8827.tar.gz
[ios, macos] Deprecate -[MGLMapViewDelegate mapView:alphaForShapeAnnotation:] (#6706)
Diffstat (limited to 'platform/ios/app')
-rw-r--r--platform/ios/app/MBXViewController.m8
1 files changed, 2 insertions, 6 deletions
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