summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLPointAnnotation.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/src/MGLPointAnnotation.h')
-rw-r--r--platform/darwin/src/MGLPointAnnotation.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/darwin/src/MGLPointAnnotation.h b/platform/darwin/src/MGLPointAnnotation.h
index aeac43bd39..1ef0962f99 100644
--- a/platform/darwin/src/MGLPointAnnotation.h
+++ b/platform/darwin/src/MGLPointAnnotation.h
@@ -12,12 +12,12 @@ NS_ASSUME_NONNULL_BEGIN
`MGLPointAnnotation` object is known as a point annotation or point shape. For
example, you could use a point shape to represent a city at low zoom levels, an
address at high zoom levels, or the location of a long press gesture.
-
+
You can add point shapes to the map by adding them to an `MGLShapeSource`
object. Configure the appearance of an `MGLShapeSource`’s or
`MGLVectorSource`’s point shapes collectively using an `MGLCircleStyleLayer` or
`MGLSymbolStyleLayer` object.
-
+
For more interactivity, add a selectable point annotation to a map view using
the `-[MGLMapView addAnnotation:]` method. Alternatively, define your own model
class that conforms to the `MGLAnnotation` protocol. Configure a point
@@ -26,10 +26,10 @@ NS_ASSUME_NONNULL_BEGIN
`-[MGLMapViewDelegate mapView:viewForAnnotation:]` (iOS only). A point
annotation’s `MGLShape.title` and `MGLShape.subtitle` properties define the
default content of the annotation’s callout (on iOS) or popover (on macOS).
-
+
To group multiple related points together in one shape, use an
`MGLPointCollection` or `MGLShapeCollection` object.
-
+
A point shape is known as a
<a href="https://tools.ietf.org/html/rfc7946#section-3.1.2">Point</a> geometry
in GeoJSON.