<div>Thanks Matt...</div>
<div>I tried that:</div>
<div> </div>
<div>nodeType: &quot;gx_layer&quot;,<br>             id: &quot;Streets&quot;,<br>             layer: &quot;Streets&quot;,<br>             isLeaf: false,<br>             expanded : true,                             <br>             loader: {<br>
                   param: &quot;LAYERS&quot;,                                       <br>                    baseAttrs: {<br>                           uiProvider: Ext.extend(Ext.tree.TreeNodeUI, {<br>                                 render: function(bulkRender) {   </div>

<div>                                        if(this.node.text == &quot;Layer3&quot;)                                             <br>                                                this.node.layer.setVisibility(false);                         <br>
                                        Ext.tree.TreeNodeUI.prototype.render.apply(this, arguments); <br>                                  }</div>
<div>...</div>
<div> </div>
<div> </div>
<div>But all node´s layer are set off... How can I set the subnode´s visibility <span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: small arial, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="BORDER-COLLAPSE: collapse; WHITE-SPACE: pre; FONT-SIZE: 17px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span">separately</span></span>?</div>

<div> </div>
<div>Thanks</div>
<div> </div>
<div>Paul<br><br></div>
<div class="gmail_quote">On Wed, Oct 14, 2009 at 11:50 AM, Matt Priour <span dir="ltr">&lt;<a href="mailto:mpriour@kestrelcomputer.com">mpriour@kestrelcomputer.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px" name="Compose message area">
<div><font size="2" face="Arial">Handle the &#39;render&#39; event of the layer tree and programmatically uncheck the nodes that you don&#39;t want on.</font></div>
<div><font size="2" face="Arial">The only disadvantage of this method is that depending on timing the application may or may not attempt to do GetMap requests on the layers you don&#39;t want. Though they still would not be visible, if you are calling a slow service or complex rendering is involved, then the GetMap requests can block other WMS service requests.</font></div>

<div><font size="2" face="Arial">Matt Priour</font></div>
<div><font size="2" face="Arial">Kestrel Computer Consullting</font> </div>
<div style="FONT: 10pt Tahoma">
<div><br></div>
<div style="BACKGROUND: #f5f5f5">
<div><b>From:</b> <a title="pauljame@gmail.com" href="mailto:pauljame@gmail.com" target="_blank">Paul james</a> </div>
<div><b>Sent:</b> Wednesday, October 14, 2009 9:39 AM</div>
<div><b>To:</b> <a title="bartvde@osgis.nl" href="mailto:bartvde@osgis.nl" target="_blank">bartvde@osgis.nl</a> </div>
<div><b>Cc:</b> <a title="users@geoext.org" href="mailto:users@geoext.org" target="_blank">users@geoext.org</a> ; <a title="ahocevar@opengeo.org" href="mailto:ahocevar@opengeo.org" target="_blank">Andreas Hocevar</a> </div>

<div><b>Subject:</b> Re: [Users] Set visibility on Sub-layers</div></div></div>
<div>
<div></div>
<div class="h5">
<div><br></div>
<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" target="_blank">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><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" target="_blank">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></div></div>
<p>
<hr>

<div class="im">
<p></p>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br><a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
</div>
<p></p></p></div></blockquote></div><br>