summaryrefslogtreecommitdiff
path: root/platform/darwin
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2017-01-08 20:22:44 -0800
committerGitHub <noreply@github.com>2017-01-08 20:22:44 -0800
commit2a9f883239acef0dd8ed34b5dc1bf29c86858a25 (patch)
treeaac90481b67c57f69dd32c3f5a282c7aac9c4a41 /platform/darwin
parentc6e60b8c03631a7ee24c480e10d3e426a400af9f (diff)
downloadqtlocation-mapboxgl-2a9f883239acef0dd8ed34b5dc1bf29c86858a25.tar.gz
[ios, macos] Document that MGLShape can deserialize GeoJSON (#7638)
Diffstat (limited to 'platform/darwin')
-rw-r--r--platform/darwin/src/MGLShape.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLShape.h b/platform/darwin/src/MGLShape.h
index 4063ab39ea..eae5b3ae21 100644
--- a/platform/darwin/src/MGLShape.h
+++ b/platform/darwin/src/MGLShape.h
@@ -17,6 +17,10 @@ NS_ASSUME_NONNULL_BEGIN
types in the GeoJSON standard, but some have nonstandard names for backwards
compatibility.
+ Although you do not create instances of this class directly, you can use its
+ `+[MGLShape shapeWithData:encoding:error:]` factory method to create one of the
+ concrete subclasses of `MGLShape` noted above from GeoJSON data.
+
You can add shapes to the map by adding them to an `MGLShapeSource` object.
Configure the appearance of an `MGLShapeSource`’s or `MGLVectorSource`’s shapes
collectively using a concrete instance of `MGLVectorStyleLayer`. Alternatively,