[OpenLayers-Users] Switching Layers Assigned to a SelectFeature
Control
Bill Thoen
bthoen at gisnet.com
Tue Jan 13 16:33:17 EST 2009
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 doesn't seem to work. I've tried changing the layer reference
in both map.controls[n].layer and panel.controls[n].layer but the tool
continues to select from the original layer that was assigned when the
tool was created. What am I doing wrong?
More information about the Users
mailing list