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/macos/app/MapDocument.m | |
parent | 4d5036616f85ff87ffe9042739872b1a080015b2 (diff) | |
download | qtlocation-mapboxgl-8f6009ea20dd74e39054c005d0e226ee07a3f168.tar.gz |
[ios, macos] Revert deprecation of alphaForShapeAnnotation: delegate method
Diffstat (limited to 'platform/macos/app/MapDocument.m')
-rw-r--r-- | platform/macos/app/MapDocument.m | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/macos/app/MapDocument.m b/platform/macos/app/MapDocument.m index 57efda1b2d..64833a8560 100644 --- a/platform/macos/app/MapDocument.m +++ b/platform/macos/app/MapDocument.m @@ -1088,9 +1088,8 @@ NS_ARRAY_OF(id <MGLAnnotation>) *MBXFlattenedShapes(NS_ARRAY_OF(id <MGLAnnotatio } } -- (NSColor *)mapView:(MGLMapView *)mapView fillColorForPolygonAnnotation:(MGLPolygon *)annotation { - NSColor *color = [[NSColor selectedMenuItemColor] colorUsingColorSpaceName:NSCalibratedRGBColorSpace]; - return [color colorWithAlphaComponent:0.8]; +- (CGFloat)mapView:(MGLMapView *)mapView alphaForShapeAnnotation:(MGLShape *)annotation { + return 0.8; } @end |