<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000;"><div>Hi list,<br><br>I´m using mapfish (1.2).<br>I have some wms layers (published with Geoserver and ArcIMS). Now I want to organize my layers at layer tree like<br><br>forest<br> -deciduous forest<br> - coniferious forest<br>different types of forest<br> - type a<br> - type b<br>..<br><br>I use viewport to build layer tree:<br>{<br> title: "Layer tree",<br> region:
"west",<br> width: 150,<br> xtype: "treepanel",<br> loader: new Ext.tree.TreeLoader({applyLoader: false}),<br> root: {<br> nodeType: "gx_layercontainer",<br> layerStore: new GeoExt.data.LayerStore({<br>
map: map, layers: layers}),<br> leaf: false,<br> expanded: true<br> }, <br><br>I played around with tree.js from GeoExt example page but could not manage this.(I´m new to JS).<br><br>my layer:<br><span>new OpenLayers.Layer.WMS("Waldfunktionen", "<a target="_blank" href="http://localhost:81/geoserver/wms?service=wms">http://localhost:81/geoserver/wms?service=wms</a>",</span><br> {layers: ['layer1','layer2'], transparent: true, format: "image/gif"}, {projection: "EPSG:4326", isBaseLayer: false, displayInLayerSwitcher: true, visibility:
true}),<br><br>So my question: do anybody has a hint for that? Or do I rather have a quite new code/application?<br><br>Thanks.<br>best regards<br>Sarah<br></div>
</div><br>__________________________________________________<br>Do You Yahoo!?<br>Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. <br>http://mail.yahoo.com </body></html>