@interface MGLMultiPolygon : MGLShape <MGLOverlay>
MGLMultiPolygon class represents a shape consisting of one or more
polygons that do not overlap. For example, you would use an
object to represent an atoll together with an island in the atoll’s lagoon:
the atoll itself would be one
MGLPolygon object, while the inner island would
MGLMultiPolygonobjects cannot be added to a map view using
-[MGLMapView addAnnotations:]and related methods.
Creates and returns a multipolygon object consisting of the given polygons.
+ (nonnull instancetype)multiPolygonWithPolygons: (nonnull NSArray<MGLPolygon *> *)polygons;
convenience init(polygons: [MGLPolygon])
The array of polygons defining the shape.
A new multipolygon object.