> I also made my own layer switcher that only allows modification of one layer
> at a time. When I toggle between the layers, I assign the layer to each of
> the modify feature controls:
>
> for(var modify_key in modifyControls) {
> var control = modifyControls[modify_key];
> control.layer = layer;
> }
I think you can't dynamically change a modify feature control's layer.
For example, the select feature control the modify feature control
uses internally would also need to be reconfigured. So I'd recommend
creating new controls when switching from one layer to another.
Cheers,
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users