[OpenLayers-Users] Callbacks on DrawFeature and Polygon
Eric Lemoine
eric.c2c at gmail.com
Thu Jun 12 07:59:46 EDT 2008
On Thu, Jun 12, 2008 at 1:50 PM, Dipl. Inf. Carsten Eider
<eider at fh-bingen.de> wrote:
> Hi Folks,
>
> I tried to setup a callback when drawing a new polygon is finished, but
>
> polygon: new OpenLayers.Control.DrawFeature(bridge.fieldLayer,
>
> OpenLayers.Handler.Polygon,{done:newFieldEnd,point:newFieldEnd})
Try:
new OpenLayers.Control.DrawFeature(
bridge.fieldLayer,
OpenLayers.Handler.Polygon, {
'featureAdded': function(feature) {
console.log(feature);
}
});
--
Eric
More information about the Users
mailing list