---
title: "new PolylineOverlay(points, options)"
framework: mapkitjs
role: symbol
role_heading: Constructor
path: mapkitjs/polylineoverlay/polylineoverlayconstructor
---

# new PolylineOverlay(points, options)

Creates a polyline overlay with coordinate points and style options.

## Declaration

```data
constructor(points: CoordinateData[], options?: OverlayOptions);
```

## Parameters

- `points`: The required points in the polyline as an array of doc://com.apple.mapkitjs/documentation/MapKitJS/Coordinate.
- `options`: An optional object literal of style options for initializing the polyline.

## Discussion

Discussion The following is an example of the options parameter for a polyline overlay: {     style: new mapkit.Style({         lineWidth: 2,         strokeColor: "#F0F"     }) }

## See Also

### Creating a polyline overlay

- [OverlayOptions](mapkitjs/overlayoptions.md)
