ui.Map.DrawingTools.setDrawModes

Sets the available draw mode shapes on the drawing tool. The available draw mode shapes are: point, line, polygon, and rectangle.

UsageReturns
DrawingTools.setDrawModes(drawModes)
ArgumentTypeDetails
this: ui.map.drawingtoolsui.Map.DrawingTools

The ui.Map.DrawingTools instance.

drawModesList, optional

The list of draw modes to enable. Defaults to all supported ones.