Class: DrawControl

DrawControl(optionsopt)

Control for drawing features.

Constructor

new DrawControl(optionsopt)

Parameters:
Name Type Attributes Description
options Object <optional>
Tool options.
Properties
Name Type Attributes Description
type string <optional>
Geometry type ('Point', 'LineString', 'Polygon', 'MultiPoint', 'MultiLineString', 'MultiPolygon' or 'Circle'). Default is 'Point'.
drawInteractionOptions Object <optional>
Options for the Draw interaction (ol/interaction/Draw).
style ol.style.Style.StyleLike <optional>
Style used for the draw interaction.
Source:

Extends

  • Control

Members

drawInteraction :ol.interaction.Draw

Type:
  • ol.interaction.Draw
Source:

Methods

activate()

Source:

deactivate()

Source: