Skip to content

gi-nx


gi-nx / setDrawTool

ts
function setDrawTool(tool: {
  defaultProps?: object;
  tool:   | "LineString"
     | "Point"
     | "Polygon"
     | "ProjectBoundary"
     | "Grid"
     | "MapSelector"
     | "Rectangle"
     | "Ramp"
     | "BPMove"
     | "BPRotate"
     | "ChildPolygon"
     | "ChildLineString"
     | "GeometryFilterBoundary"
     | "Split"
     | "Eyedropper"
     | "Mirror"
     | "Lasso"
     | "MeasureDistance"
     | "MeasureArea"
     | "NewProjectBoundary"
     | "ChooseFeature"
     | "PushPull";
}): void;

Parameters

ParameterTypeDescription
tool.defaultProps?objectthe properties that will be added to the next rawsection that gets created
tool.tool| "LineString" | "Point" | "Polygon" | "ProjectBoundary" | "Grid" | "MapSelector" | "Rectangle" | "Ramp" | "BPMove" | "BPRotate" | "ChildPolygon" | "ChildLineString" | "GeometryFilterBoundary" | "Split" | "Eyedropper" | "Mirror" | "Lasso" | "MeasureDistance" | "MeasureArea" | "NewProjectBoundary" | "ChooseFeature" | "PushPull"-

Returns

void

void