Re: [OpenLayers-Users] How to stop registering events

2009-10-30 Thread Max Stephan
Ok, thanks. Now the unregistering works and the function that gets called when the event was triggered only runs once. But another problem appeared. The layer that contains the features I want to select is shown or hidden depending on the resolution. For this reason I need to query the WFS-Server

Re: [OpenLayers-Users] How to stop registering events

2009-10-29 Thread Eric Lemoine
On Thu, Oct 29, 2009 at 3:17 PM, Max Stephan wrote: > > Hi Eric, > > thanks for your help but I don't get the idea what your code is doing. Could > you explain it? it was just to show you that unregister works as expected. > Furthermore what is the unregister function in general > exactly doing.

Re: [OpenLayers-Users] How to stop registering events

2009-10-29 Thread Max Stephan
Hi Eric, thanks for your help but I don't get the idea what your code is doing. Could you explain it? Furthermore what is the unregister function in general exactly doing. Am I right in thinking it stops the previous defined registering of an event or is it doing something else? greets Max Steph

Re: [OpenLayers-Users] How to stop registering events

2009-10-29 Thread Eric Lemoine
On Thu, Oct 29, 2009 at 1:00 PM, Max Stephan wrote: > > Hi list, > > I´m using layer.events.register('loadend',map,zoomToFeature); in my > application. The scenario is the following: > In a list the user clicks on an icon that represents a polygon-Feature and > has an ID. After that I´m querying m

[OpenLayers-Users] How to stop registering events

2009-10-29 Thread Max Stephan
Hi list, I´m using layer.events.register('loadend',map,zoomToFeature); in my application. The scenario is the following: In a list the user clicks on an icon that represents a polygon-Feature and has an ID. After that I´m querying my Geoserver for the feature with this ID and get the response bac