This can be done by creating a new LayerSwitcher control which supports grouping of layers. This isn't too hard to do, if you have sufficient JS and HTML coding abilty.
There's an open pull request for a new LayerSwitcherGroups control that apparently does this: https://github.com/openlayers/openlayers/pull/12/ On Wed, Sep 17, 2014 at 10:51 PM, Andreas Forø Tollefsen < andrea...@gmail.com> wrote: > Hi, > > I am working on a thematic mapping platform showing data at local > administrative levels. > I have many layers, so I run into problems (see screenshot: > http://gisintersect.com/many_layers.png). > > Is there any way I can collapse groups of layers within the layer switcher? > I have a high number of layers, as you can see in the switcher. Hence, I > need some way to collapse/group/categorize the layers, so that I do not > need to show all of them in the layerswitcher at once. > The result is that layers drop outside the map, so either, there is a > maximum number of layers, or there should be a better way to do it. > > Andreas > > _______________________________________________ > Users mailing list > us...@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users >
_______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users