---
title: points
framework: mapkitjs
role: symbol
role_heading: Instance Property
path: mapkitjs/polylineoverlay/points
---

# points

An array of coordinate points that define the polyline overlay’s shape.

## Declaration

```data
get points(): Coordinate[];
set points(points: Coordinate[]);
```

## Discussion

Discussion MapKit JS defines the points in the polyline as an array of Coordinate points. A copy of the overlay’s array returns on read, so changing the array’s elements has no effect on the overlay. To change the overlay’s points, assign a new array. MapKit JS doesn’t draw a polyline with fewer than two points on the map.
