summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLShapeCollection.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-01-16 15:08:17 -0800
committerMinh Nguyễn <mxn@1ec5.org>2017-01-16 15:08:17 -0800
commitcf166717b8e616a3599038ffff440b50251ed7b8 (patch)
tree74d06c35bdf0d6f970c63c988baef26650515afb /platform/darwin/src/MGLShapeCollection.h
parentbd71eb8681529ab70ff892b12128f8b7a5faa4c7 (diff)
parent7ef2843e6a62116667be6a2c12de085951fdd5ea (diff)
downloadqtlocation-mapboxgl-cf166717b8e616a3599038ffff440b50251ed7b8.tar.gz
Merge branch '1ec5-release-ios-v3.4.0-beta.7'
Diffstat (limited to 'platform/darwin/src/MGLShapeCollection.h')
-rw-r--r--platform/darwin/src/MGLShapeCollection.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLShapeCollection.h b/platform/darwin/src/MGLShapeCollection.h
index dfad080de2..5d2ce588c9 100644
--- a/platform/darwin/src/MGLShapeCollection.h
+++ b/platform/darwin/src/MGLShapeCollection.h
@@ -8,12 +8,30 @@
NS_ASSUME_NONNULL_BEGIN
/**
- The `MGLShapeCollection` class represents a shape consisting of one or more
+ An `MGLShapeCollection` object represents a shape consisting of zero or more
distinct but related shapes that are instances of `MGLShape`. The constituent
shapes can be a mixture of different kinds of shapes.
- @note `MGLShapeCollection` objects cannot be added to a map view using
- `-[MGLMapView addAnnotations:]` and related methods.
+ `MGLShapeCollection` is most commonly used to add multiple shapes to a single
+ `MGLShapeSource`. Configure the appearance of an `MGLShapeSource`’s or
+ `MGLVectorSource`’s shape collection collectively using an
+ `MGLSymbolStyleLayer` object, or use multiple instances of
+ `MGLCircleStyleLayer`, `MGLFillStyleLayer`, and `MGLLineStyleLayer` to
+ configure the appearance of each kind of shape inside the collection.
+
+ You cannot add an `MGLShapeCollection` object directly to a map view as an
+ annotation. However, you can create individual `MGLPointAnnotation`,
+ `MGLPolyline`, and `MGLPolygon` objects from the `shapes` array and add those
+ annotation objects to the map view using the `-[MGLMapView addAnnotations:]`
+ method.
+
+ To represent a collection of point, polyline, or polygon shapes, it may be more
+ convenient to use an `MGLPointCollection`, `MGLMultiPolyline`, or
+ `MGLMultiPolygon` object, respectively.
+
+ A multipolyline is known as a
+ <a href="https://tools.ietf.org/html/rfc7946#section-3.1.8">GeometryCollection</a>
+ geometry in GeoJSON.
*/
MGL_EXPORT
@interface MGLShapeCollection : MGLShape