OpenLayers.Control.DrawFeature

The DrawFeature control draws point, line or polygon features on a vector layer when active.

Inherits from

Summary
OpenLayers.Control.DrawFeatureThe DrawFeature control draws point, line or polygon 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

callbacks

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

Constants

EVENT_TYPES

Supported event types

featureaddedTriggered 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