OpenLayers.Control.DrawFeature - OpenLayers

# OpenLayers. Control. DrawFeature

Draws features on a vector layer when active.

#### Inherits from

- OpenLayers.Control

Summary

OpenLayers. Control. DrawFeature | Draws features on a vector layer when active.
Properties |
layer | {OpenLayers.Layer.Vector}
callbacks | {Object} The functions that are sent to the handler for callback
Constants |
EVENT_TYPES |
Properties |
featureAdded | {Function} Called after each feature is added
handlerOptions | {Object} Used to set non-default properties on the control’s handler
Constructor |
OpenLayers. Control. DrawFeature |
Functions |
drawFeature |

### Properties

### layer

{OpenLayers.Layer.Vector}

### callbacks

{Object} The functions that are sent to the handler for callback

### Constants

### EVENT_TYPES

#### Supported event types

- featureadded Triggered when a feature is added

### Properties

### featureAdded

{Function} Called after each feature is added

### handlerOptions

{Object} Used to set non-default properties on the control’s handler

### Constructor

### OpenLayers. Control. DrawFeature

#### Parameters

layer | {OpenLayers.Layer.Vector}
handler | {OpenLayers.Handler}
options | {Object}

### Functions

### drawFeature

> drawFeature: function( | geometry | )

Instances of OpenLayers.Layer.Vector are used to render vector data from a variety of sources.

> drawFeature: function( | geometry | )

Controls affect the display or behavior of the map.
Base class to construct a higher-level handler for event sequences.
Close