OpenLayers. Handler. Polygon

Handler to draw a polygon on the map.  Polygon is displayed on mouse down, moves on mouse move, and is finished on mouse up.

Inherits from

Summary
OpenLayers. Handler. PolygonHandler to draw a polygon on the map.
Constructor
OpenLayers. Handler. PolygonCreate a Polygon Handler.

Constructor

OpenLayers. Handler. Polygon

Create a Polygon Handler.

Parameters

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 polygon 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}
Handler to draw a path on the map.
Base class to construct a higher-level handler for event sequences.
Controls affect the display or behavior of the map.
Close