Re: [OpenLayers-Users] Switching Layers Assigned to a SelectFeature Control

2009-01-14 Thread Alexandre Dube
Hi Bill, Keep in mind that only your top layer is the only one you can interact with. Plus, I'm not sure if what you're trying to do is a good practice. I would recommend on control per layer, only one usable at a time on the top most layer. You could register some visibilitychanged events to

Re: [OpenLayers-Users] Switching Layers Assigned to a SelectFeature Control

2009-01-14 Thread Eric Lemoine
Hi. Have you tried: deactivate control, change its layer, activate control. I'm not sure it'll work but it's worth trying. Eric 2009/1/13, Bill Thoen bth...@gisnet.com: I've got three vector feature layers and I'd like to use the same tool to select any feature from any of these layers. But I

[OpenLayers-Users] Switching Layers Assigned to a SelectFeature Control

2009-01-13 Thread Bill Thoen
I've got three vector feature layers and I'd like to use the same tool to select any feature from any of these layers. But I understand that you can only have one layer selectable at a time. So I'm thinking that if I change the layer reference in the control as needed, that will do it. But it