Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for the drawing manager.

Hierarchy

  • DrawingManagerOptions

Index

Properties

Optional circleOptions

circleOptions: undefined | CircleOptions

Options to apply to any new circles created with this DrawingManager. The center and radius properties are ignored, and the map property of a new circle is always set to the DrawingManager's map.

Optional drawingControl

drawingControl: undefined | boolean

The enabled/disabled state of the drawing control. Defaults to true.

Optional drawingControlOptions

drawingControlOptions: undefined | DrawingControlOptions

The display options for the drawing control.

Optional drawingMode

drawingMode: undefined | null | CIRCLE | MARKER | POLYGON | POLYLINE | RECTANGLE

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.

Optional map

map: undefined | Map<Element>

The Map to which the DrawingManager is attached, which is the Map on which the overlays created will be placed.

Optional markerOptions

markerOptions: undefined | MarkerOptions

Options to apply to any new markers created with this DrawingManager. The position property is ignored, and the map property of a new marker is always set to the DrawingManager's map.

Optional polygonOptions

polygonOptions: undefined | PolygonOptions

Options to apply to any new polygons created with this DrawingManager. The paths property is ignored, and the map property of a new polygon is always set to the DrawingManager's map.

Optional polylineOptions

polylineOptions: undefined | PolylineOptions

Options to apply to any new polylines created with this DrawingManager. The path property is ignored, and the map property of a new polyline is always set to the DrawingManager's map.

Optional rectangleOptions

rectangleOptions: undefined | RectangleOptions

Options to apply to any new rectangles created with this DrawingManager. The bounds property is ignored, and the map property of a new rectangle is always set to the DrawingManager's map.

Generated using TypeDoc