From 2a9f883239acef0dd8ed34b5dc1bf29c86858a25 Mon Sep 17 00:00:00 2001 From: Jesse Bounds Date: Sun, 8 Jan 2017 20:22:44 -0800 Subject: [ios, macos] Document that MGLShape can deserialize GeoJSON (#7638) --- platform/darwin/src/MGLShape.h | 4 ++++ 1 file changed, 4 insertions(+) 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, -- cgit v1.2.1