<iframe src="https://developers.devsite.google/frame/maps/documentation/javascript/reference/drawing_0de1cf7add896542ca8efcfead366ed5b6e71c9c88e36f2328c7ba95e7644261.frame" class="framebox inherit-locale redirect-iframe" allow="clipboard-write https://developers.devsite.google" allowfullscreen is-upgraded></iframe>

## [DrawingManager](https://developers.google.com/maps/documentation/javascript/reference/drawing.md.txt#DrawingManager)
class


class
`google.maps.drawing.DrawingManager`
extends `MVCObject`

library `"drawing"`

> [!WARNING]
> **[Deprecated:](https://developers.google.com/maps/deprecations.md.txt)** The DrawingManager functionality in the Maps JavaScript API is no longer available in the Maps JavaScript API as of version 3.65. For more info, see <https://developers.google.com/maps/deprecations>.

Allows users to draw markers, polygons, polylines, rectangles, and circles on the map. The `DrawingManager`'s drawing mode defines the type of overlay that will be created by the user. Adds a control to the map, allowing the user to switch drawing mode.

```javascript
const {DrawingManager} = await google.maps.importLibrary("drawing");
```

| ### Constructor ||
|---|---|

| ### Methods ||
|---|---|

## [OverlayType](https://developers.google.com/maps/documentation/javascript/reference/drawing.md.txt#OverlayType)
constants


constants
`google.maps.drawing.OverlayType`

library `"drawing"`

The types of overlay that may be created by the `DrawingManager`. Specify these by value, or by using the constant's name. For example, `'polygon'` or `google.maps.drawing.OverlayType.POLYGON`.

These constants are also usable as strings. In TypeScript, the string literals are defined by the `OverlayTypeString` type.

```javascript
const {OverlayType} = await google.maps.importLibrary("drawing");
```

| ### Constants ||
|---|---|
| `CIRCLE` | Specifies that the `DrawingManager` creates circles, and that the overlay given in the `overlaycomplete` event is a circle. |
| `MARKER` | Specifies that the `DrawingManager` creates markers, and that the overlay given in the `overlaycomplete` event is a marker. |
| `POLYGON` | Specifies that the `DrawingManager` creates polygons, and that the overlay given in the `overlaycomplete` event is a polygon. |
| `POLYLINE` | Specifies that the `DrawingManager` creates polylines, and that the overlay given in the `overlaycomplete` event is a polyline. |
| `RECTANGLE` | Specifies that the `DrawingManager` creates rectangles, and that the overlay given in the `overlaycomplete` event is a rectangle. |