<div>Thats It Andreas!</div>
<div>Thanks...</div>
<div> </div>
<div>Paul<br><br></div>
<div class="gmail_quote">On Tue, Feb 9, 2010 at 4:37 PM, Andreas Hocevar <span dir="ltr"><<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">Paul james wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; 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 class="im"><br><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; 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 class="im"><br><br> "LAYERS": ['l1,l2', 'l3,l4'],<br><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; 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 class="im"><br><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; 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>