chellymehdi / vopenlayers

Automatically exported from code.google.com/p/vopenlayers
0 stars 0 forks source link

Add 'beforefeatureselected' event to AbstractAutoPopulatedVectorLayer #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

To make it possible to click on a feature in 'WebFeatureServiceLayerTest2' 
without a feature select (it enables to show messages every time you click) I 
add on my working copy the 'beforefeatureselected' event. I solve also the TODO 
for fire 'featureunselected' ... while this work I found the following problem:
If you got more then one vector layer with features and all got select 
listeners, only the last listener got the select events. IMO the reason is all 
layers got it own SelectFeature control (in VAbstractAutopopulatedVectorLayer).

I would try to implement some kind of singleton for the select control or any 
other ideas?

My current changes are in the patch to illustrate the problem. I will commit it 
later. Maybe  after I solve the described problem.

Original issue reported on code.google.com by eiko.tho...@gmail.com on 19 Oct 2012 at 9:50

Attachments:

GoogleCodeExporter commented 9 years ago
I commit the changes in revision 173

Original comment by eiko.tho...@gmail.com on 21 Oct 2012 at 7:12