<div>Thanks bart...</div>
<div>But I need set all layers to build up my treeview, like that:</div>
<div> </div>
<div>nodeType: &quot;gx_layer&quot;,<br>                    layer: &quot;Streets&quot;,<br>                    isLeaf: false,<br>            <br>                    loader: {<br>                        param: &quot;LAYERS&quot;,</div>

<div>...</div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Wed, Oct 14, 2009 at 11:16 AM, <span dir="ltr">&lt;<a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi Paul,<br><br>only by using LAYERS: [&#39;layer1&#39;, &#39;layer2&#39;].<br><br>Then later on, when you need more layers, you should change the LAYERS<br>
param using the mergeNewParams function.<br><br>Best regards,<br>Bart<br>
<div class="im"><br>&gt; Hello guys... I have that set of sublayers :<br>&gt;<br>&gt; new OpenLayers.Layer.MapServer(&quot;Streets&quot;,<br>&gt;                 _cgi, {<br>&gt;                     map: _mapfile,<br>&gt;                     &quot;LAYERS&quot;: [&#39;Layer1&#39;,&#39;Layer2&#39;,&#39;Layer3&#39;,&#39;Layer4&#39;,<br>
&gt; &#39;Layer5&#39;],<br>&gt;                     transparent: true,<br>&gt;                     format: &quot;image/png&quot;<br>&gt;                 }, {<br>&gt;                     isBaseLayer: false,<br>&gt;                     buffer: 0,<br>
&gt;                     displayInLayerSwitcher: false,<br>&gt;                     visibility: false<br>&gt;                 })<br>&gt;<br></div>&gt; I悲 like to start with Layer1 and Layer2 with visibility true ... How can<br>
&gt; I<br>&gt; do that?<br>&gt;<br>&gt; Paul<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a href="mailto:Users@geoext.org">Users@geoext.org</a><br>&gt; <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br><br><br></blockquote></div><br>