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.
Access by calling const {DrawingManager} = await google.maps.importLibrary("drawing")
. See
https://developers.google.com/maps/documentation/javascript/libraries.
Adds the given listener function to the given event name. Returns an
identifier for this listener that can be used with
google.maps.event.removeListener
.
Binds a View to a Model.
Gets a value.
Returns the DrawingManager
's drawing mode.
Returns the Map
to which the DrawingManager
is
attached, which is the Map
on which the overlays created
will be placed.
Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.
Sets a value.
Changes the DrawingManager
's drawing mode, which defines
the type of overlay to be added on the map. Accepted values are
'marker'
, 'polygon'
, 'polyline'
,
'rectangle'
, 'circle'
, or null
. A
drawing mode of null
means that the user can interact with
the map as normal, and clicks do not draw anything.
Attaches the DrawingManager
object to the specified
Map
.
Sets the DrawingManager
's options.
Sets a collection of key-value pairs.
Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.
Removes all bindings.
Generated using TypeDoc
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.Access by calling
const {DrawingManager} = await google.maps.importLibrary("drawing")
. See https://developers.google.com/maps/documentation/javascript/libraries.