OpenLayers.Handler.Point - OpenLayers

# OpenLayers. Handler. Point

Handler to draw a point on the map. Point is displayed on mouse down, moves on mouse move, and is finished on mouse up. The handler triggers callbacks for ‘done’ and ‘cancel’. Create a new instance with the OpenLayers.Handler.Point constructor.

#### Inherits from

- OpenLayers.Handler

Summary

OpenLayers. Handler. Point | Handler to draw a point on the map.
Properties |
persist | {Boolean} Leave the feature rendered until destroyFeature is called.
Constructor |
OpenLayers. Handler. Point | Create a new point handler.
Functions |
activate | turn on the handler
deactivate | turn off the handler
cancel | Finish the geometry and call the “cancel” callback.

### Properties

### persist

{Boolean} Leave the feature rendered until destroyFeature is called. Default is false. If set to true, the feature remains rendered until destroyFeature is called, typically by deactivating the handler or starting another drawing.

### Constructor

### OpenLayers. Handler. Point

Create a new point handler.

#### Parameters

control | {OpenLayers.Control} The control that owns this handler
callbacks | {Object} An object with a ‘done’ property whose value is a function to be called when the point drawing is finished. The callback should expect to recieve a single argument, the point geometry. If the callbacks object contains a ‘cancel’ property, this function will be called when the handler is deactivated while drawing. The cancel should expect to receive a geometry.
options | {Object} An optional object with properties to be set on the handler

### Functions

### activate

> activate: function()

turn on the handler

### deactivate

> deactivate: function()

turn off the handler

### cancel

> cancel: function()

Finish the geometry and call the “cancel” callback.

> activate: function()

turn on the handler

> deactivate: function()

turn off the handler

> cancel: function()

Finish the geometry and call the “cancel” callback.
Create a new point handler.
Base class to construct a higher-level handler for event sequences.
Controls affect the display or behavior of the map.
Close