worldwind-ui API / react-worldwind / DrawToolProps
Interface: DrawToolProps ​
Defined in: react/src/ui/DrawTool.tsx:8
Extends ​
Properties ​
className? ​
optionalclassName?:string
Defined in: react/src/ui/DrawTool.tsx:17
downloadName? ​
optionaldownloadName?:string
Defined in: react/src/ui/DrawTool.tsx:16
File name for the download.
editable? ​
optionaleditable?:boolean
Defined in: kit/src/draw.ts:63
Let features be selected, dragged and deleted. Default true.
Inherited from ​
finishOnDoubleClick? ​
optionalfinishOnDoubleClick?:boolean
Defined in: kit/src/draw.ts:65
Finish a line or polygon on double-click. Default true.
Inherited from ​
DrawToolOptions.finishOnDoubleClick
handleImage? ​
optionalhandleImage?:string|null
Defined in: kit/src/draw.ts:60
Image for vertex handles. Defaults to WorldWind's white dot.
Inherited from ​
handleScale? ​
optionalhandleScale?:number
Defined in: kit/src/draw.ts:61
Inherited from ​
heading? ​
optionalheading?:string|null
Defined in: react/src/ui/DrawTool.tsx:10
idPrefix? ​
optionalidPrefix?:string
Defined in: kit/src/draw.ts:69
Prefix of generated feature ids. Default feature-.
Inherited from ​
keyboard? ​
optionalkeyboard?:boolean
Defined in: kit/src/draw.ts:67
On the focused canvas: Escape cancels, Enter finishes, Delete and Backspace remove. Default true.
Inherited from ​
layerName? ​
optionallayerName?:string
Defined in: kit/src/draw.ts:48
Inherited from ​
line? ​
optionalline?:ShapeStyle
Defined in: kit/src/draw.ts:54
Style of lines. Defaults to an orange 3 px line.
Inherited from ​
onChange? ​
optionalonChange?: (features) =>void
Defined in: react/src/ui/DrawTool.tsx:12
Called with the features whenever they change.
Parameters ​
features ​
readonly DrawFeature[]
Returns ​
void
pathType? ​
optionalpathType?:PathType
Defined in: kit/src/draw.ts:49
Inherited from ​
pointImage? ​
optionalpointImage?:string|null
Defined in: kit/src/draw.ts:51
Image for point features. Defaults to a red pushpin.
Inherited from ​
pointScale? ​
optionalpointScale?:number
Defined in: kit/src/draw.ts:52
Inherited from ​
polygon? ​
optionalpolygon?:ShapeStyle
Defined in: kit/src/draw.ts:56
Style of polygons. Defaults to a translucent orange fill.
Inherited from ​
position? ​
optionalposition?:PanelPosition
Defined in: react/src/ui/DrawTool.tsx:9
selected? ​
optionalselected?:ShapeStyle
Defined in: kit/src/draw.ts:58
Applied on top of the line or polygon style while a feature is selected.
Inherited from ​
showDownload? ​
optionalshowDownload?:boolean
Defined in: react/src/ui/DrawTool.tsx:14
Add a button that downloads the drawings as GeoJSON. Default false.