On 2009-12-18 09:59, Bart van den Eijnden wrote: > Hi list, > > when the above mentioned control is used in box mode, for every retrieved > feature a featureselected event is triggered with 1 feature. > > Questions: > 1) why not 1 event with all the features in an array? >
Because you can use the beforefeatureselected event to filter the features that trigger a featureselected event. > 2) if the current approach is really necessary, I guess a before type event > is necessary, for instance I am using an Ext.Store and I need to know when to > clear the previous features. > Without breaking anything, you could easily add a "beforefeaturesselected" and "featuresselected" event, and maybe also the unselect counterparts. Regards, Andreas. > TIA for any pointers. > > Best regards, > Bart > _______________________________________________ > Dev mailing list > Dev@openlayers.org > http://openlayers.org/mailman/listinfo/dev > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev