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

avlee slinavlee at gmail.com
Wed Oct 14 03:47:57 EDT 2009


Try this:

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


Jimmy Aumard wrote:
> 
> 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
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/Activate-and-deactivate-event-on-control-problem-tp3794640p3821173.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list