[OpenLayers-Users] activate / deactivate events

gabriel gpetricek at gmail.com
Mon Jul 29 06:59:59 PDT 2013


Hi Andreas, 

I have a little bit different problem. Im using two events for selecting
features. 
A) selectFeature.events.register("boxselectionend", vector, function(){...})
B) selectFeature.events.register("featurehighlighted", vector,
function(){...})

After selecting the features , they are subsequently deleted. And there is
the problem. After using boxselectionend event, the featurehighlighted event
is launched. Thats normal , because features are highlighted after
boxselection event. So i tried to unregister the featurehighlighted  event
in boxselectionend event  like this: 

selectFeature.events.unregister("featurehighlighted", vector,
function(handler));

but event is still active. 






--
View this message in context: http://osgeo-org.1560.x6.nabble.com/activate-deactivate-events-tp3913790p5069373.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list