Hi,

  You might be interested in this unofficial ux I've been working on :
http://dev.geoext.org/sandbox/mapgears/geoext.ux/ux/LayerTreeBuilder/examples/tree-builder.html

It's basically a tree panel automatically built from the OpenLayers.Layer objects you add to your map. It checks for the "group" property and create the according directories for you.

As I said, it's not official, but it's a nice way to easilly setup a layertree without having to know much about the GeoExt components creating it.

HTH,

Alexandre


On 10-12-09 08:48 AM, Vidal, Antoni wrote:

Hello,

I have a treepanel built by the following code in layout.js:

items: [{

                title: 'Capes',

    xtype: "treepanel",

    loader: new Ext.tree.TreeLoader({

        applyLoader: false

    }),

                rootVisible: false,

    root: {

                               children: createChildren()

    }

}

And:

var createChildren = function(){

                return [{

"nodeType": "gx_baselayercontainer",

"expanded": true

                                               },{

"nodeType": "gx_overlaylayercontainer",

"expanded": false

                                               }]

};

I would like to customize the organisation in different folders and different order of layers, and not two folders "Base Layer" and "Overlays" which is what I get by default.

How can I do ?

Thank's in advance

*Antoni Vidal*

Unitat d'Aplicacions SIG-WEB
Institut Cartogràfic de Catalunya <http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392>
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3228)
www.icc.cat <http://www.icc.cat/>


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


--
Alexandre Dubé
Mapgears
www.mapgears.com

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

Reply via email to