<html>
<head>
<title></title>
<style type="text/css" media="screen">
body {font-family: verdana, arial, helvetica, sans-serif;font-size: 12px;padding: 5px;margin: 0;background-color: #FFF;}
p, ul, li {margin-top: 0;margin-bottom: 0;}
blockquote {margin-left: 5px;}
div.signature {color: #666;font-size: 0.9em;}
</style>
</head>
<body>
<pre>First thanks for your answer!<br /><br />I don't have many experience with Geoserver, so I have a question:<br />In this field "default WMS path" do I have to type in numbers? Or how can geoserver identify the position? Can you give me a small example?<br /><br />Kathrin <br /><br /><br />----------------------------------------------------------------------------<br /><br />Hi! A tip that may help: maybe there is an easier way to do what you want. You can create a treePanel by using the "GeoExt.tree.WMSCapabilitiesLoader" class. Then, in GeoServer, you can fill in the "default WMS path" field of each layer: <a href="http://docs.geoserver.org/stable/en/user/webadmin/data/layers.html">http://docs.geoserver.org/stable/en/user/webadmin/data/layers.html</a> This field allows GeoServer to create a hierarchy in the WMS Capabilities document of your GeoServer. Then, this hierarchy is identified by the treePanel, that creates automatically themes and sub-themes. Geoffrey Le Mon, 26 Sep 2011 15:18:18 +0200, Kathrin Babiker <<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">k.babiker at gmx.de</a>> a écrit: ><em> Hi, </em>><em> I need an idea to build a layertree with consists not only of baselayers </em>><em> and overlaylayers but also of different sublayers like this: </em>><em> 1 - background </em>><em> 2 - theme 1 </em>><em> 2-1 theme 1 subpoint A </em>><em> 2-1-1 subsubpoint A-a </em>><em> 2-1-2 subsubpoint A-b </em>><em> 2-1-3 subsubpoint A-c </em>><em> 2-2 theme 1 subpoint B </em>><em> 2-2-1 subsubpoint B-a </em>><em> 2-2-2 subsubpoint B-b </em>><em> 3 - theme 2 </em>><em> 3-1 theme 2 subpoint A </em>><em> ... </em>><em> I mean it should look like a folder structure we know from our own PC. </em>><em> </em>><em> I tried a layout (taken from tree.js from geoext) with OpenLayers, GeoExt </em>><em> and ExtJS but the structure is not going deep enough. The layers at </em>><em> subsubpoints should come from geoserver. </em>><em> </em>><em> </em>><em> My code is like this: </em>><em> </em>><em> var treeConfig = new OpenLayers.Format.JSON().write([{ </em>><em> nodeType: "gx_baselayercontainer" </em>><em> }, { </em>><em> nodeType: "gx_overlaylayercontainer", </em>><em> expanded: true, </em>><em> // render the nodes inside this container with a radio </em>><em> button, </em>><em> // and assign them the group "foo". </em>><em> loader: { </em>><em> baseAttrs: { </em>><em> radioGroup: "foo", </em>><em> uiProvider: "layernodeui" </em>><em> } </em>><em> } </em>><em> }, { </em>><em> nodeType: "gx_layer", </em>><em> layer: "Europäische Union (Gruppe)", </em>><em> isLeaf: false, </em>><em> // create subnodes for the layers in the LAYERS param. If we </em>><em> assign </em>><em> // a loader to a LayerNode and do not provide a loader </em>><em> class, a </em>><em> // LayerParamLoader will be assumed. </em>><em> loader: { </em>><em> param: "LAYERS" </em>><em> } </em>><em> }], true); </em>><em> </em>><em> // create the tree with the configuration from above </em>><em> tree = new Ext.tree.TreePanel({ </em>><em> border: true, </em>><em> region: "west", </em>><em> title: "Ebenen", </em>><em> width: 200, </em>><em> split: true, </em>><em> collapsible: true, </em>><em> collapseMode: "mini", </em>><em> autoScroll: true, </em>><em> </em>><em> loader: new Ext.tree.TreeLoader({ </em>><em> // applyLoader has to be set to false to not </em>><em> interfer with loaders </em>><em> // of nodes further down the tree hierarchy </em>><em> applyLoader: false, </em>><em> uiProviders: { </em>><em> "layernodeui": LayerNodeUI </em>><em> } </em>><em> }), </em>><em> root: { </em>><em> nodeType: "async", </em>><em> // the children property of an </em>><em> Ext.tree.AsyncTreeNode is used to </em>><em> // provide an initial set of layer nodes. We use the </em>><em> treeConfig </em>><em> // from above, that we created with </em>><em> OpenLayers.Format.JSON.write. </em>><em> children: Ext.decode(treeConfig) </em>><em> }, </em>><em> </em>><em> rootVisible: false, </em>><em> lines: false </em>><em> </em>><em> }); </em>><em> </em>><em> Is there anyone who can help me? There MUST be any possibility to get </em>><em> well </em>><em> structured tree, or?! </em>><em> Thanks </em>><em> Kathrin </em>><em> </em> -- -- Geoffrey BRUN Étudiant en master SIGMA Stagiaire au PNR du Haut-Languedoc Hameau de Brassac Saint-Pons de Thomières +33 (0) 6 77 74 44 16</pre>
<div class="signature"><br /><br /><br />-- <br />Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir<br />belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de</div></body>
</html>