LayerSwitcherGroups
I've added simple layers grouping. It is handy in many situations when there is many similar layers.
I test the example and it works! It is a very interesting function. ;-) Thank you!!!! Do you think that LayerSwitcherGroup can replace the currect LayerSwitcher control?
Thanks for comments, fixed. I've had a conflict in the Renderer/Elements.js because of https://trac.osgeo.org/openlayers/attachment/ticket/2349/labelbackgrounds.patch Do you maybe know if it was incorporated in the meantime in some other form? Best
Hi, i am trying to include this LayerSwitcherGroups control in my proyect. I want to ask you about the example. There you put:
var group = [roads, cities];
for (var i=0; i < group.length; i++) { group[i].group = 'Drogi i miasta'; }
and if i am not wrong group[i] is a OpenLayers.Layer.WMS which does not have a group property.
So i don't understand the assignment statement group[i].group = 'Drogi i miasta';
I'll be pleased if you could help me with this. Regards, Gustavo.