summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLPolygon.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/darwin/src/MGLPolygon.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/darwin/src/MGLPolygon.h')
-rw-r--r--platform/darwin/src/MGLPolygon.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLPolygon.h b/platform/darwin/src/MGLPolygon.h
index 900e43334e..f75c4481be 100644
--- a/platform/darwin/src/MGLPolygon.h
+++ b/platform/darwin/src/MGLPolygon.h
@@ -25,7 +25,7 @@ NS_ASSUME_NONNULL_BEGIN
`-[MGLMapView addAnnotation:]` or `-[MGLMapView addOverlay:]` method. Configure
a polygon overlay’s appearance using
`-[MGLMapViewDelegate mapView:strokeColorForShapeAnnotation:]` and
- `-[MGLMapViewDelegate mapView:fillColorForPolygonAnnotation:]`.
+ `-[MGLMapViewDelegate mapView:fillColorForShape:]`.
The vertices are automatically connected in the order in which you provide
them. You should close the polygon by specifying the same
@@ -45,6 +45,9 @@ NS_ASSUME_NONNULL_BEGIN
To make the polygon straddle the antimeridian, specify some longitudes less
than −180 degrees or greater than 180 degrees.
+ To approximate a circle that corresponds to a physical radius, use an
+ `MGLCircle` object.
+
#### Related examples
See the <a href="https://docs.mapbox.com/ios/maps/examples/polygon/">
Add a polygon annotation</a> example to learn how to initialize an