summaryrefslogtreecommitdiff
path: root/platform/macos/src/MGLMapViewDelegate.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2019-04-28 17:23:23 -0700
committerMinh Nguyễn <mxn@1ec5.org>2019-05-07 22:04:48 -0700
commit910639168aaad8f06749c5be184ae50dbe9d566b (patch)
tree9bd1642efe2c9ed65b51a8a317602975b7c5c73f /platform/macos/src/MGLMapViewDelegate.h
parent84a11ba4e5a6c64edd63b81d606e2ae57862c798 (diff)
downloadqtlocation-mapboxgl-910639168aaad8f06749c5be184ae50dbe9d566b.tar.gz
[ios, macos] Added circle geometryupstream/1ec5-circle-2167
Added an MGLCircle class that generates a many-sided polygon under the hood.
Diffstat (limited to 'platform/macos/src/MGLMapViewDelegate.h')
-rw-r--r--platform/macos/src/MGLMapViewDelegate.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/platform/macos/src/MGLMapViewDelegate.h b/platform/macos/src/MGLMapViewDelegate.h
index c7d6786666..4717df68ea 100644
--- a/platform/macos/src/MGLMapViewDelegate.h
+++ b/platform/macos/src/MGLMapViewDelegate.h
@@ -6,6 +6,7 @@ NS_ASSUME_NONNULL_BEGIN
@class MGLAnnotationImage;
@class MGLPolygon;
@class MGLPolyline;
+@class MGLCircle;
@class MGLShape;
/**
@@ -227,20 +228,25 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (NSColor *)mapView:(MGLMapView *)mapView strokeColorForShapeAnnotation:(MGLShape *)annotation;
+- (NSColor *)mapView:(MGLMapView *)mapView fillColorForPolygonAnnotation:(MGLPolygon *)annotation __attribute__((deprecated("", "-mapView:fillColorForShape:")));
+
/**
- Returns the color to use when rendering the fill of a polygon annotation.
+ Returns the color to use when rendering the fill of a shape annotation.
+ This method is only called for `MGLPolygon` and `MGLCircle` annotations. It is
+ not possible to fill a polyline or point annotation.
+
The default fill color is the selected menu item color. If a pattern color is
specified, the result is undefined.
Opacity may be set by specifying an alpha component. The default alpha value is
`1.0` and results in a completely opaque shape.
- @param mapView The map view rendering the polygon annotation.
- @param annotation The annotation being rendered.
- @return The polygon’s interior fill color.
+ @param mapView The map view rendering the shape annotation.
+ @param shape The annotation being rendered.
+ @return The shape’s fill color.
*/
-- (NSColor *)mapView:(MGLMapView *)mapView fillColorForPolygonAnnotation:(MGLPolygon *)annotation;
+- (NSColor *)mapView:(MGLMapView *)mapView fillColorForShape:(MGLShape *)shape;
/**
Returns the line width in points to use when rendering the outline of a