# ui.Map.DrawingTools.setDrawModes

<br />

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

<br />

| Usage | Returns |
|---|---|
| `DrawingTools.setDrawModes(*drawModes*)` |   |

| Argument | Type | Details |
|---|---|---|
| this: `ui.map.drawingtools` | ui.Map.DrawingTools | The ui.Map.DrawingTools instance. |
| `drawModes` | List\[String\], optional | The list of draw modes to enable. Defaults to all supported ones. |