Andreas, today I noticed one wrong thing with that implementation...<br>My GeoExt.LegendPanel is not showing the item anymore... Is that a solution to that?<br><br>Thanks<br><br>Paul<br><br><div class="gmail_quote">On Tue, Feb 9, 2010 at 4:46 PM, Paul james <span dir="ltr"><<a href="mailto:pauljame@gmail.com">pauljame@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Thats It Andreas!</div>
<div>Thanks...</div>
<div> </div><font color="#888888">
<div>Paul<br><br></div></font><div><div></div><div class="h5">
<div class="gmail_quote">On Tue, Feb 9, 2010 at 4:37 PM, Andreas Hocevar <span dir="ltr"><<a href="mailto:ahocevar@opengeo.org" target="_blank">ahocevar@opengeo.org</a>></span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div>Paul james wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">Hello guys...<br> Is it possible to associate 2 layers in a single Treeview Item ?<br></blockquote>
<br></div>
You mean you want e.g. l1,l2 in one sub-item and l3,l4 in another? Here you go:
<div><br><br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">Example: I have that layer (using SUBLAYERS)<br> var _test = new OpenLayers.Layer.WMS("TEST",<br>
_mapfile, { "LAYERS": ['l1', 'l2', 'l3', 'l4'],<br></blockquote><br></div>Replace the above line with:
<div><br><br> "LAYERS": ['l1,l2', 'l3,l4'],<br><br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote"> transparent: true,<br> format: "image/png"<br>
}, {<br>
isBaseLayer: false, buffer: 0,<br> visibility: true }); My treeview:<br>...<br>text: "TEST", expanded: true,<br>
children: [<br> {<br> nodeType: "gx_layerparam", layer: "TEST",<br> param: "LAYERS",<br>
item: "l1",<br></blockquote><br></div> item: "l1,l2",
<div><br><br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote"> text: "test layer",<br> checked: true,<br>
uiProvider: ...<br>
}<br>...<br> <br></blockquote><br></div>Regards,<br>Andreas.<br><font color="#888888"><br>-- <br>Andreas Hocevar<br>OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>Expert service straight from the developers.<br>
<br></font></blockquote></div><br>
</div></div></blockquote></div><br>