[OpenLayers-Dev] Control.GetFeature question
ahocevar at opengeo.org
Fri Dec 18 04:38:32 EST 2009
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.
> 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.
> TIA for any pointers.
> Best regards,
> Dev mailing list
> Dev at openlayers.org
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Dev