Skip to content

Function: createPolygon()

ts
function createPolygon(coordinates, properties?): Polygon;

Create a polygon annotation

Parameters

coordinates

[number, number][][]

properties?

Partial<Omit<PolygonProperties, "type">> & object

Returns

Polygon