points
An array of coordinate points that define the polyline overlay’s shape.
Declaration
get points(): Coordinate[];
set points(points: Coordinate[]);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.