Skip to content

worldwind-ui API / worldwind-kit / DrawToolOptions

Interface: DrawToolOptions ​

Defined in: kit/src/draw.ts:47

Extended by ​

Properties ​

editable? ​

optional editable?: boolean

Defined in: kit/src/draw.ts:63

Let features be selected, dragged and deleted. Default true.


finishOnDoubleClick? ​

optional finishOnDoubleClick?: boolean

Defined in: kit/src/draw.ts:65

Finish a line or polygon on double-click. Default true.


handleImage? ​

optional handleImage?: string | null

Defined in: kit/src/draw.ts:60

Image for vertex handles. Defaults to WorldWind's white dot.


handleScale? ​

optional handleScale?: number

Defined in: kit/src/draw.ts:61


idPrefix? ​

optional idPrefix?: string

Defined in: kit/src/draw.ts:69

Prefix of generated feature ids. Default feature-.


keyboard? ​

optional keyboard?: boolean

Defined in: kit/src/draw.ts:67

On the focused canvas: Escape cancels, Enter finishes, Delete and Backspace remove. Default true.


layerName? ​

optional layerName?: string

Defined in: kit/src/draw.ts:48


line? ​

optional line?: ShapeStyle

Defined in: kit/src/draw.ts:54

Style of lines. Defaults to an orange 3 px line.


pathType? ​

optional pathType?: PathType

Defined in: kit/src/draw.ts:49


pointImage? ​

optional pointImage?: string | null

Defined in: kit/src/draw.ts:51

Image for point features. Defaults to a red pushpin.


pointScale? ​

optional pointScale?: number

Defined in: kit/src/draw.ts:52


polygon? ​

optional polygon?: ShapeStyle

Defined in: kit/src/draw.ts:56

Style of polygons. Defaults to a translucent orange fill.


selected? ​

optional selected?: ShapeStyle

Defined in: kit/src/draw.ts:58

Applied on top of the line or polygon style while a feature is selected.

MIT licensed. Not affiliated with NASA; WorldWind is NASA's open-source virtual globe.