ol2 icon indicating copy to clipboard operation
ol2 copied to clipboard

LayerSwitcherGroups

Open rkj opened this issue 14 years ago • 3 comments

I've added simple layers grouping. It is handy in many situations when there is many similar layers.

rkj avatar Oct 10 '11 14:10 rkj

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?

nachouve avatar May 31 '12 12:05 nachouve

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

rkj avatar Jun 04 '12 04:06 rkj

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.

ghost avatar Nov 28 '16 20:11 ghost