I get a group "Forest" with its different sub-layers like:

-Forest
        -forest1
        -forest2
        -forest3.

Forest is my wms OpenLayers.Layer.WMS("Forest", ..) and I´m using geoserver.

HTH
best regards
Sarah



________________________________


 
Sarah,
 
Thanks. But similar code and mine is not working. How different is your 
legendpanel code bit from mine? Do you get the grouplayers in the legendpanel 
as 
individual layers with their legend graphics or appears as a group with the 
group title?
 
Cheers.
 
-----Original Message-----
From: Sarah Schuessler [mailto:[email protected]] 
Sent: 17 August 2010 12:31
To: Anthony Tuffour
Cc: [email protected]
Subject: AW: AW: [Users] GeoExt.LegendPanel and Layergroups
 
 
 
I have this code that worked for me:
                        title: "Layer tree",
                        width: 200, 
                        id: "treelayer",
                        margins: '5 0 5 5',
                        xtype: "treepanel",                           
                        loader: new Ext.tree.TreeLoader({
                                applyLoader: false}),
                                root: {
                                 nodeType: "async",
                                children: [                                
                               {
                                nodeType: "gx_baselayercontainer"
                                }, {
                                nodeType: "gx_overlaylayercontainer",
                                expanded: true,
                                loader: {
                                    baseAttrs: {radioGroup: "foo"}
                                    } 
                                }
                            , {
                                nodeType: "gx_layer",
                                layer: "Forest",
                                isLeaf: false,
                                loader: { 
                                    param: "LAYERS"
                                    }
                                    }
                            ]
HTH.
best regards
Sarah

________________________________
 
 


Hackney Council may exercise its right to intercept any communication, the only 
exception to this would be confidential survey data, with any employee or agent 
of the Council using its telephony or data networks. 

By using these networks you give your consent to Hackney Council monitoring and 
recording your communication.
If you have received this e-mail in error please delete it immediately and 
contact the sender.
For further information about Hackney Council policies please contact Hackney 
Service Centre on: 020 8356 3000
Click here to report this email as spam.


Hackney Council may exercise its right to intercept any communication, the only 
exception to this would be confidential survey data, with any employee or agent 
of the Council using its telephony or data networks. 

By using these networks you give your consent to Hackney Council monitoring and 
recording your communication.
If you have received this e-mail in error please delete it immediately and 
contact the sender.For further information about Hackney Council policies 
please 
contact Hackney Service Centre on: 020 8356 3000
********************************************************************** 
London Borough of Hackney may exercise its right to intercept any communication 
on its networks - for more information see 

http://www.hackney.gov.uk/email_disclaimer.html 
********************************************************************** 
 
This message has been scanned for malware by Websense. www.websense.com

_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to