[OpenLayers-Users] Activate and deactivate event on control problem

Jimmy Aumard jimmy.aumard at gmail.com
Fri Oct 9 09:37:37 EDT 2009


Hi,

I try to register activate and deactivate event on a control but it's
doesn't work :

polygonControl = new
OpenLayers.Control.DrawFeature(layer,OpenLayers.Handler.RegularPolygon,{handlerOptions:polyOptions});

polygonControl.events.register("activate", polygonControl,
function(){alert("activate!");});

I have no alert.

Thanks for help.

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091009/2b64c5c1/attachment.html


More information about the Users mailing list