---
title: "init(points:count:)"
framework: mapkit
role: symbol
role_heading: Initializer
path: "mapkit/mkpolygon/init(points:count:)"
---

# init(points:count:)

Creates and returns a polygon object from the specified set of map points.

## Declaration

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

## Parameters

- `points`: The array of map points defining the shape. The new object copy the data in this array.
- `count`: The number of items in the points array.

## Return Value

Return Value A new polygon object.

## See Also

### Related Documentation

- [Location and Maps Programming Guide](apple-archive/documentation/UserExperience/Conceptual/LocationAwarenessPG/Introduction.md)

### Creating a polygon overlay

- [init(points:count:interiorPolygons:)](mapkit/mkpolygon/init(points:count:interiorpolygons:).md)
- [init(coordinates:count:)](mapkit/mkpolygon/init(coordinates:count:).md)
- [init(coordinates:count:interiorPolygons:)](mapkit/mkpolygon/init(coordinates:count:interiorpolygons:).md)
