Handler to draw a path on the map. Path is displayed on mouse down, moves on mouse move, and is finished on mouse up.
OpenLayers. Handler.Path | Handler to draw a path on the map. |
Constructor | |
OpenLayers. Handler.Path | Create a new path hander |
Create a new path hander
control | {OpenLayers.Control} |
callbacks | {Object} An object with a ‘done’ property whos value is a function to be called when the path drawing is finished. The callback should expect to recieve a single argument, the line string geometry. If the callbacks object contains a ‘point’ property, this function will be sent each point as they are added. 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 |