[Users] sublayers at layer tree

Sarah Schuessler sarah_flip at yahoo.de
Fri Jan 22 14:48:53 CET 2010


Hi list,

I´m using mapfish (1.2).
I have some wms layers (published with Geoserver and ArcIMS). Now I want to organize my layers at layer tree like

forest
    -deciduous forest
    - coniferious forest
different types of forest
    - type a
    - type b
..

I use viewport to build layer tree:
{
                    title: "Layer tree",
                    region: "west",
                    width: 150,
                    xtype: "treepanel",
               loader: new Ext.tree.TreeLoader({applyLoader: false}),
                    root: {
                        nodeType: "gx_layercontainer",
                        layerStore: new GeoExt.data.LayerStore({
                map: map, layers: layers}),
                        leaf: false,
                        expanded: true
                    }, 

I played around with tree.js from GeoExt example page but could not manage this.(I´m new to JS).

my layer:
new OpenLayers.Layer.WMS("Waldfunktionen", "http://localhost:81/geoserver/wms?service=wms",
        {layers: ['layer1','layer2'], transparent: true, format: "image/gif"}, {projection: "EPSG:4326", isBaseLayer: false, displayInLayerSwitcher: true, visibility: true}),

So my question: do anybody has a hint for that? Or do I  rather have a quite new code/application?

Thanks.
best regards
Sarah


__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100122/ae27b9cd/attachment.htm 


More information about the Users mailing list