Type Method

polygonWithCoordinates:count:interiorPolygons:

Creates and returns an MKPolygon object from the specified set of coordinates and interior polygons.

Declaration

+ (instancetype)polygonWithCoordinates:(const CLLocationCoordinate2D *)coords count:(NSUInteger)count interiorPolygons:(NSArray<MKPolygon *> *)interiorPolygons;

Parameters

coords

The array of coordinates defining the shape. The data in this array is copied to the new object.

count

The number of items in the coords array.

interiorPolygons

An array of MKPolygon objects that define one or more cutout regions for the receiver’s polygon.

Return Value

A new polygon object.

See Also

Creating a Polygon Overlay

+ polygonWithPoints:count:

Creates and returns an MKPolygon object from the specified set of map points.

+ polygonWithPoints:count:interiorPolygons:

Creates and returns an MKPolygon object from the specified set of map points and interior polygons.

+ polygonWithCoordinates:count:

Creates and returns an MKPolygon object from the specified set of coordinates.