[OpenLayers-Users] activate / deactivate events

karsten vennemann karsten at terragis.net
Sat Sep 17 02:45:32 EDT 2011


Hi all,
 
I have a click event registered on the map:
 
map.events.register('click', map, function (e) {
... code to be executed...
}

How can I activate or deactivate this event ?
If it was an OpenLayers control called 'infofeature' I could do e.g.
infofeature.activate(); 
and 
infofeature.deactivate(); 
 
How could I achieve this for the above event ?
 
Thanks
Karsten
 

Karsten Vennemann

Terra GIS LTD
Seattle, WA  98112
USA 
www.terragis.net

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


More information about the Users mailing list