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.DrawingToolsThe ui.Map.DrawingTools instance.
drawModesList, optionalThe list of draw modes to enable. Defaults to all supported ones.