<div>Thanks Matt...</div>
<div>I tried that:</div>
<div> </div>
<div>nodeType: "gx_layer",<br> id: "Streets",<br> layer: "Streets",<br> isLeaf: false,<br> expanded : true, <br> loader: {<br>
param: "LAYERS", <br> baseAttrs: {<br> uiProvider: Ext.extend(Ext.tree.TreeNodeUI, {<br> render: function(bulkRender) { </div>
<div> if(this.node.text == "Layer3") <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"><<a href="mailto:mpriour@kestrelcomputer.com">mpriour@kestrelcomputer.com</a>></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 'render' event of the layer tree and programmatically uncheck the nodes that you don'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'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: "gx_layer",<br> layer: "Streets",<br> isLeaf: false,<br> <br> loader: {<br> param: "LAYERS",</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"><<a href="mailto:bartvde@osgis.nl" target="_blank">bartvde@osgis.nl</a>></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: ['layer1', 'layer2'].<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>> Hello guys... I have that set of sublayers :<br>><br>> new OpenLayers.Layer.MapServer("Streets",<br>> _cgi, {<br>> map: _mapfile,<br>> "LAYERS": ['Layer1','Layer2','Layer3','Layer4',<br>
> 'Layer5'],<br>> transparent: true,<br>> format: "image/png"<br>> }, {<br>> isBaseLayer: false,<br>> buffer: 0,<br>
> displayInLayerSwitcher: false,<br>> visibility: false<br>> })<br>><br></div>> I悲 like to start with Layer1 and Layer2 with visibility true ... How can<br>
> I<br>> do that?<br>><br>> Paul<br>> _______________________________________________<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>
><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>