跳到主要内容

flywave-draw-controls.mapdrawcontrols.createdrawline

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

MapDrawControls.createDrawLine() method

Create draw line object

Signature:

protected createDrawLine(mapView: MapView, vertices: GeoCoordinates[], id?: string): DrawLine;

Parameters

Parameter

Type

Description

mapView

MapView

Map view

vertices

GeoCoordinates[]

Vertex array

id

string

(Optional) ID

Returns:



[DrawLine](./flywave-draw-controls.drawline.md)

Draw line object