Type Method

polygonWithPoints:count:

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

Declaration

+ (instancetype)polygonWithPoints:(const MKMapPoint *)points count:(NSUInteger)count;

Parameters

points

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

count

The number of items in the points array.

Return Value

A new polygon object.

See Also

Creating a Polygon Overlay

+ 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.

+ polygonWithCoordinates:count:interiorPolygons:

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