<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I'm not sure about the origin of your issue, but looking at the
following non-official ux might help you find it (since I managed to
do that) :<br>
<a class="moz-txt-link-freetext" href="http://dev.geoext.org/sandbox/mapgears/geoext.ux/ux/LayerTreeBuilder/examples/tree-builder.html">http://dev.geoext.org/sandbox/mapgears/geoext.ux/ux/LayerTreeBuilder/examples/tree-builder.html</a><br>
<br>
I hope this helps,<br>
<br>
Alexandre<br>
<br>
<br>
On 11-01-07 12:21 PM, karsten vennemann wrote:
<blockquote cite="mid:D6BE76BC11C44B70820602A1B16BA8B4@snuggie"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18999">
<div dir="ltr" align="left"><span class="120451917-07012011"><font
color="#000080" face="Arial" size="2">Hi, </font></span></div>
<div><span class="120451917-07012011"><font color="#000080"
face="Arial" size="2">really nobody has a hint how to do
this ?</font></span></div>
<div><span class="120451917-07012011"></span><span
style="font-family: Verdana; font-size: 11pt;"><font
color="#000080" size="2">Karsten <br>
</font></span></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 128);
padding-left: 5px; margin-left: 5px; margin-right: 0px;"
dir="ltr">
<div dir="ltr" class="OutlookMessageHeader" align="left"
lang="en-us">
<hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b>
karsten vennemann [<a class="moz-txt-link-freetext" href="mailto:karsten@terragis.net">mailto:karsten@terragis.net</a>] <br>
<b>Sent:</b> Wednesday, January 05, 2011 16:12<br>
<b>To:</b> '<a class="moz-txt-link-abbreviated" href="mailto:users@geoext.org">users@geoext.org</a>'<br>
<b>Subject:</b> GeoExt Legend Tree and base layers ?<br>
</font><br>
</div>
<div><font color="#000080" face="Arial" size="2"><span
class="575500400-06012011">Hi all,</span></font></div>
<div><font color="#000080" face="Arial" size="2"><span
class="575500400-06012011"></span></font> </div>
<div><span class="575500400-06012011"><font size="2"><font
color="#000080" face="Arial">have a GeoExt Legend Tree
below and wanted to enable more base layers to be shown
(no legend needed for those in) it too. The one below
work already with OSM and shows up as a radio button.
Now I would like to add back into my app google and
yahoo base layers. However, if I just add them to
Openlayer the tree does not show anything any more. </font></font></span></div>
<div><span class="575500400-06012011"><font size="2"><font
face="Arial"><font color="#000080">What do I need to
change in my tree legend below to enable base layers
otehr than OSM to work. I tried adding a nodeType:
"gx_baselayercontainer" but could not gte it to
work. It will be something like in <span
class="575500400-06012011"><a moz-do-not-send="true"
href="http://api.geoext.org/1.0/examples/tree.html">http://api.geoext.org/1.0/examples/tree.html</a> but
with legend icons ...</span></font></font></font></span></div>
<div><font color="#000080" face="Arial" size="2"><span
class="575500400-06012011"></span></font> </div>
<div><font color="#000080" face="Arial" size="2"><span
class="575500400-06012011">I have this :</span></font></div>
<div><font color="#000080" face="Arial" size="2"><span
class="575500400-06012011"></span></font> </div>
<div><font color="#000080" face="Arial" size="2"> var
tree = new Ext.tree.TreePanel({<br>
title: "Ebenen",<br>
width: 250,<br>
autoScroll: true,<br>
enableDD: true,<br>
// apply the tree node component plugin to layer
nodes<br>
plugins: [{<br>
ptype: "gx_treenodecomponent"<br>
}],<br>
loader: {<br>
applyLoader: false,<br>
uiProviders: {<br>
"custom_ui": LayerNodeUI<br>
}<br>
},<br>
root: {nodeType: "gx_layercontainer",<br>
loader: {<br>
baseAttrs: {<br>
uiProvider: "custom_ui"<br>
},<br>
createNode: function(attr) {<br>
// add a WMS legend to each node
created<br>
attr.component = {<br>
xtype: "gx_wmslegend",<br>
layerRecord:
mapPanel.layers.getByLayer(attr.layer),<br>
showTitle: false,<br>
// custom class for css
positioning<br>
// see tree-legend.html<br>
cls: "legend"<br>
}<br>
return
GeoExt.tree.LayerLoader.prototype.createNode.call(this,
attr);<br>
}<br>
}<br>
},<br>
rootVisible: false,<br>
lines: false<br>
});</font></div>
<div> </div>
<div><font size="2"><font face="Arial"><font color="#000080"><span
class="575500400-06012011">Thanks<br>
</span><span style="font-family: Verdana; font-size:
11pt;">Karsten </span></font></font></font></div>
</blockquote>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Alexandre Dubé
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
</body>
</html>