Patch for Path and Poligon handlers.
Extends `Path` & `Polygon` handlers to remove the last added point or delete the drawing if no more points to remove by esc-key. The keys act only when the cursor is on the map.
NOTE: At the build process “requires” for Polygon.js is not strictly necessary, so if not want to use Handler.Polygon the Polygon.js file could be added in [exclude] paragraph in the *.cfg file.
OpenLayers. | Patch for Path and Poligon handlers. |
Properties | |
onMap | {Boolean} Read only, true if the cursor is on the map. |
keyboardHandler | {<OpenLayers.Handler.Keyboard>} |
Functions | |
destroy | |
setMap | |
activate | |
deactivate | |
handleKeypress | Called by the handler on keydown. |
move | Handle mousemove and touchmove. |
mouseout | Handle mouse out. |
destroy: function()
setMap: function( map )
activate: function()
deactivate: function()
Called by the handler on keydown.
handleKeypress: function( evt )
Handle mousemove and touchmove.
move: function( evt )
Handle mouse out.
mouseout: function( evt )