I’m creating an application using OpenGeo Suite SDK and I need to create a two level layer manager. I can create the first layer tree with the "gxp_layermanager" using the following code in the suite-sdk:
{
ptype: "gxp_layermanager",
groups: {
"default": "Capas",
"MGN":{
title:"Marco Geoestadístico Nacional"
},
"TelCom":{
title:"Vías de comunicación"
},
"background": {
title: "Mapa base",
exclusive: true
}
},
outputConfig: {
id: "tree",
border: true,
tbar: []
},
outputTarget: "westpanel"
},
That will put the layers in groups but what I need is to create subgroups or children nodes, pretty much like the left panel here.