OpenLayers.Control.Measure - OpenLayers

# OpenLayers. Control. Measure

Allows for drawing of features for measurements.

#### Inherits from

- OpenLayers.Control

Summary

OpenLayers. Control. Measure | Allows for drawing of features for measurements.
Constants |
EVENT_TYPES | {Array(String)} Supported application event types.
Properties |
handlerOptions | {Object} Used to set non-default properties on the control’s handler
Constructor |
OpenLayers. Control. Measure |

### Constants

### EVENT_TYPES

{Array(String)} Supported application event types. Register a listener for a particular event with the following syntax:

>     control.events.register(type, obj, listener);

Listeners will be called with a reference to an event object. The properties of this event depends on exactly what happened.

#### Supported control event types (in addition to those from OpenLayers.Control)

- measure Triggered when a measurement sketch is complete. Listeners will receive an event with measure, units, order, and geometry properties.
- measurepartial Triggered when a new point is added to the measurement sketch. Listeners receive an event with measure, units, order, and geometry.

### Properties

### handlerOptions

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

### Constructor

### OpenLayers. Control. Measure

#### Parameters

handler | {OpenLayers.Handler}
options | {Object}

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