OpenLayers JavaScript Mapping Library |
OpenLayers. Handler. PointHandler 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 fromSummary
point{OpenLayers.Feature.Vector} The currently drawn point layer{OpenLayers.Layer.Vector} The temporary drawing layer lastDown{OpenLayers.Pixel} Location of the last mouse down OpenLayers. Handler. PointCreate a new point handler. Parameters
|
turn on the handler
activate: function()
Add temporary features
createFeature: function()
turn off the handler
deactivate: function()
Destroy the temporary geometries
destroyFeature: function()
Finish the geometry and call the “done” callback.
finalize: function()
Finish the geometry and call the “cancel” callback.
cancel: function()
Handle double clicks.
dblclick: function( evt )
Render features on the temporary layer.
drawFeature: function()
Return a clone of the relevant geometry.
geometryClone: function()
Handle mouse down.
mousedown: function( evt )
Handle mouse move.
mousemove: function ( evt )
Handle mouse up.
mouseup: function ( evt )