Skip to main content

flywave-draw-controls.drawpolygon

Home > @flywave/flywave-draw-controls > DrawPolygon

DrawPolygon class

Signature:

export declare class DrawPolygon extends DrawableObject 

Extends: DrawableObject

Constructors

Constructor

Modifiers

Description

(constructor)(mapView, vertices, id)

Constructs a new instance of the DrawPolygon class

Properties

Property

Modifiers

Type

Description

edges

protected

Line2[]

fillColor

protected

number

mesh

protected

THREE.Mesh

opacity

protected

number

outline

protected

Line2

outlineColor

protected

number

outlineEdges

protected

Line2[]

verticesPoints

protected

PointObject[]

Methods

Method

Modifiers

Description

createOutlineEdgeMaterial()

protected

createOutlineMaterial(color)

protected

createOutlineObject()

protected

createPolygonMaterial(color, opacity)

protected

createVertexPoint(position, isVertex)

protected

dispose()

getCenter()

getVertexPoints()

getVertexSelected(index)

moveTo(newPosition)

setOutlineVisible(visible)

setVertexSelected(index, selected)

toGeoJSON()

update()

updateOutline()

protected

updateVertex(index, newVertex)

updateVisuals()

protected