ui.Map.DrawingTools

A set of tools for drawing on a map.

UsageReturns
ui.Map.DrawingTools(layers, shape, selected, shown, linked)ui.Map.DrawingTools
ArgumentTypeDetails
layersList, optional

An array of geometry layers with which to initialize the drawing tools.

shapeString, optional

The shape to draw. One of the following: point, line, polygon, or rectangle. Defaults to polygon.

selectedui.Map.GeometryLayer, optional

The selected geometry layer. Defaults to null.

shownBoolean, optional

When false, hides the drawing tools or, when true, shows the shape selecter and allows the list panel's visibility to be determined by the presence of geometry layers in the list. Defaults to true.

linkedBoolean, optional

Whether the drawing tools are linked to the geometries in the imports pane. When false, the tools do not display imported geometries. Defaults to false.