diff options
author | Jason Wray <friedbunny@users.noreply.github.com> | 2016-10-14 19:50:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-14 19:50:21 -0400 |
commit | 4a0173bbd79f90a543dc51ebf15c20a3d30a8827 (patch) | |
tree | e18746ee592dae0caf1c1c18f9e0742fd6eff500 /platform/macos/app | |
parent | 0a8858f2da4f637fbf8ae7d3f5ffe4640d3e0c80 (diff) | |
download | qtlocation-mapboxgl-4a0173bbd79f90a543dc51ebf15c20a3d30a8827.tar.gz |
[ios, macos] Deprecate -[MGLMapViewDelegate mapView:alphaForShapeAnnotation:] (#6706)
Diffstat (limited to 'platform/macos/app')
-rw-r--r-- | platform/macos/app/MapDocument.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/macos/app/MapDocument.m b/platform/macos/app/MapDocument.m index 9c3abc1a1e..505678fcc2 100644 --- a/platform/macos/app/MapDocument.m +++ b/platform/macos/app/MapDocument.m @@ -826,8 +826,9 @@ NS_ARRAY_OF(id <MGLAnnotation>) *MBXFlattenedShapes(NS_ARRAY_OF(id <MGLAnnotatio } } -- (CGFloat)mapView:(MGLMapView *)mapView alphaForShapeAnnotation:(MGLShape *)annotation { - return 0.8; +- (NSColor *)mapView:(MGLMapView *)mapView fillColorForPolygonAnnotation:(MGLPolygon *)annotation { + NSColor *color = [[NSColor selectedMenuItemColor] colorUsingColorSpaceName:NSCalibratedRGBColorSpace]; + return [color colorWithAlphaComponent:0.8]; } @end |