chellymehdi / vopenlayers

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

Only last-added VectorLayer can respond to VectorSelected events #116

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add the attached SelectMultipleVectorLayers demo class
2. Without the patch applied, comment out the 2 errors where code calls the new 
.setSelectionCtrlId method on VectorLayer

What is the expected output? What do you see instead?
After you add a second VectorLayer, the first one no longer receives 
VectorSelected events.

The attached patch file uses the solution Eiko implemented for Issue 96. His 
targeted AbstractPopulatedVectorLayer and it's client widget; this patch 
targets VectorLayer and it's client widget.  The API is getting messy here and 
needs refactoring ... but I'll open a new issue on that.

Apply the patch, rebuild the widgetset, and run the demo class again.  You 
should see the same behavior as before the patch.  Uncomment the 2 lines to 
enable the setSelectionCtrlId calls, and rerun the demo class.  You will now be 
able to select features on either layer.

Please provide any additional information below.

Original issue reported on code.google.com by jr...@redzonesoftware.com on 30 Nov 2012 at 3:50

Attachments:

GoogleCodeExporter commented 9 years ago
sorry for the late response but currently I have a lot of other things to do 
... I will check your patch next days

Original comment by eiko.tho...@gmail.com on 11 Dec 2012 at 10:10

GoogleCodeExporter commented 9 years ago
Hi, I add your patch right now to the source code (r208) ... well done :-)
Thank you.

Kind regards,
Eiko

Original comment by eiko.tho...@gmail.com on 15 Jan 2013 at 10:13