gi-nx / setDrawTool
ts
function setDrawTool(tool: {
brush?: boolean;
defaultProps?: object;
pickFileProp?: DrawnFileProp;
tool: | "LineString"
| "Point"
| "Polygon"
| "Grid"
| "MapSelector"
| "Rectangle"
| "Ramp"
| "BasePointMove"
| "BPRotate"
| "ChildPolygon"
| "ChildLineString"
| "ChildRectangle"
| "GeometryFilterBoundary"
| "Split"
| "OffsetSplit"
| "Offset"
| "Orient"
| "Align"
| "AlignFeature"
| "ExtendLine"
| "Eyedropper"
| "Mirror"
| "Lasso"
| "MeasureDistance"
| "MeasureArea"
| "ChooseFeature"
| "PushPull";
}): void;Parameters
| Parameter | Type | Description |
|---|---|---|
tool.brush? | boolean | apply the remembered properties (the brush) as they stand when each shape is committed |
tool.defaultProps? | object | the properties that will be added to the next rawsection that gets created |
tool.pickFileProp? | DrawnFileProp | open the picker for this defaultProps key once the shape is committed |
tool.tool | | "LineString" | "Point" | "Polygon" | "Grid" | "MapSelector" | "Rectangle" | "Ramp" | "BasePointMove" | "BPRotate" | "ChildPolygon" | "ChildLineString" | "ChildRectangle" | "GeometryFilterBoundary" | "Split" | "OffsetSplit" | "Offset" | "Orient" | "Align" | "AlignFeature" | "ExtendLine" | "Eyedropper" | "Mirror" | "Lasso" | "MeasureDistance" | "MeasureArea" | "ChooseFeature" | "PushPull" | - |
Returns
void
void