# ui.Map.DrawingTools.setShape

<br />

Sets the draw mode shape and starts draw mode. The available draw mode shapes are: point, line, polygon, and rectangle.

<br />

Returns this set of drawing tools.

| Usage | Returns |
|---|---|
| `DrawingTools.setShape(shape)` | ui.Map.DrawingTools |

| Argument | Type | Details |
|---|---|---|
| this: `ui.map.drawingtools` | ui.Map.DrawingTools | The ui.Map.DrawingTools instance. |
| `shape` | String | The shape to draw. |