Skip to main content

flywave-draw-controls.mapdrawcontrols.createdrawpolygon

Home > @flywave/flywave-draw-controls > MapDrawControls > createDrawPolygon

MapDrawControls.createDrawPolygon() method

Create draw polygon object

Signature:

protected createDrawPolygon(mapView: MapView, vertices: GeoCoordinates[], id?: string): DrawPolygon;

Parameters

Parameter

Type

Description

mapView

MapView

Map view

vertices

GeoCoordinates[]

Vertex array

id

string

(Optional) ID

Returns:



[DrawPolygon](./flywave-draw-controls.drawpolygon.md)

Draw polygon object