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

Eric Lemoine eric.c2c at gmail.com
Thu Jan 15 02:10:57 EST 2009


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 <bthoen at 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 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?
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list