Polygon

constructor(latlngs: Array<LatLng>, options: Polyline.PolylineOptions = definedExternally)

Create a polygon from an array of LatLng points.


constructor(latlngs: Array<Array<LatLng>>, options: Polyline.PolylineOptions = definedExternally)

Parameters

latlngs

An array of arrays of LatLng, with the first array representing the outer shape and the other arrays representing holes in the outer shape.


constructor(latlngs: Array<Array<Array<LatLng>>>, options: Polyline.PolylineOptions = definedExternally)

Parameters

latlngs

a multi-dimensional array to represent a MultiPolygon shape.