Initializer

init(coordinates:count:)

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

Declaration

convenience init(coordinates coords: UnsafePointer<CLLocationCoordinate2D>, count: Int)

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.

Return Value

A new polygon object.

See Also

Creating a Polygon Overlay

init(points: UnsafePointer<MKMapPoint>, count: Int)

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

init(points: UnsafePointer<MKMapPoint>, count: Int, interiorPolygons: [MKPolygon]?)

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

init(coordinates: UnsafePointer<CLLocationCoordinate2D>, count: Int, interiorPolygons: [MKPolygon]?)

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