On Thursday, September 9, 2010, P Kishor <[email protected]> wrote: > I see a note about a patch that enables "groups" in the LayerSwitcher > <http://trac.openlayers.org/ticket/1086>, but no mention of such a > capability in the official docs > <http://dev.openlayers.org/docs/files/OpenLayers/Control/LayerSwitcher-js.html>. > > I would like to bunch layers in two or more groups in the > LayerSwitcher, kinda like so > > Base Layer > (o) layer 1 > (o) layer 2 > Group 1 > [x] layer 3 > [ ] layer 4 > [x] layer 5 > Group 2 > [x] layer 6 > [x] layer 7 > > Is that possible? > > By the way, why are the docs at > <http://dev.openlayers.org/docs/files/OpenLayers/Control/LayerSwitcher-js.html> > different from the docs at > <http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Control/LayerSwitcher-js.html>?
It isn't supported. So you'll have to create your own LayerSwitcher, possibly based on OpenLayers'. Alternatively, you can look at GeoExt, which privides a LayerTree component with quite advanced capabilities. Good luck. 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://lists.osgeo.org/mailman/listinfo/openlayers-users
