worldwind-ui API / worldwind-kit / DrawToolOptions
Interface: DrawToolOptions ​
Defined in: kit/src/draw.ts:47
Extended by ​
Properties ​
editable? ​
optionaleditable?:boolean
Defined in: kit/src/draw.ts:63
Let features be selected, dragged and deleted. Default true.
finishOnDoubleClick? ​
optionalfinishOnDoubleClick?:boolean
Defined in: kit/src/draw.ts:65
Finish a line or polygon on double-click. Default true.
handleImage? ​
optionalhandleImage?:string|null
Defined in: kit/src/draw.ts:60
Image for vertex handles. Defaults to WorldWind's white dot.
handleScale? ​
optionalhandleScale?:number
Defined in: kit/src/draw.ts:61
idPrefix? ​
optionalidPrefix?:string
Defined in: kit/src/draw.ts:69
Prefix of generated feature ids. Default feature-.
keyboard? ​
optionalkeyboard?:boolean
Defined in: kit/src/draw.ts:67
On the focused canvas: Escape cancels, Enter finishes, Delete and Backspace remove. Default true.
layerName? ​
optionallayerName?:string
Defined in: kit/src/draw.ts:48
line? ​
optionalline?:ShapeStyle
Defined in: kit/src/draw.ts:54
Style of lines. Defaults to an orange 3 px line.
pathType? ​
optionalpathType?:PathType
Defined in: kit/src/draw.ts:49
pointImage? ​
optionalpointImage?:string|null
Defined in: kit/src/draw.ts:51
Image for point features. Defaults to a red pushpin.
pointScale? ​
optionalpointScale?:number
Defined in: kit/src/draw.ts:52
polygon? ​
optionalpolygon?:ShapeStyle
Defined in: kit/src/draw.ts:56
Style of polygons. Defaults to a translucent orange fill.
selected? ​
optionalselected?:ShapeStyle
Defined in: kit/src/draw.ts:58
Applied on top of the line or polygon style while a feature is selected.