diff options
author | Jason Wray <jason@mapbox.com> | 2017-01-12 21:37:21 -0500 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2017-01-13 15:43:41 -0500 |
commit | 8f6009ea20dd74e39054c005d0e226ee07a3f168 (patch) | |
tree | 1e0118b8d045d72d9f5d0942e65ccee32d8d026a /platform/ios/app | |
parent | 4d5036616f85ff87ffe9042739872b1a080015b2 (diff) | |
download | qtlocation-mapboxgl-8f6009ea20dd74e39054c005d0e226ee07a3f168.tar.gz |
[ios, macos] Revert deprecation of alphaForShapeAnnotation: delegate method
Diffstat (limited to 'platform/ios/app')
-rw-r--r-- | platform/ios/app/MBXViewController.m | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m index ff69581dac..1d3139ee79 100644 --- a/platform/ios/app/MBXViewController.m +++ b/platform/ios/app/MBXViewController.m @@ -1554,9 +1554,15 @@ 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]); + UIColor *color = [annotation isKindOfClass:[MGLPolyline class]] ? [UIColor greenColor] : [UIColor blackColor]; + return [color colorWithAlphaComponent:0.9]; } - (UIColor *)mapView:(__unused MGLMapView *)mapView fillColorForPolygonAnnotation:(__unused MGLPolygon *)annotation |