<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18999"></HEAD>
<BODY>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=575500400-06012011>Hi
all,</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><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
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></DIV></SPAN>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=575500400-06012011></SPAN></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=575500400-06012011>I have
this :</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=575500400-06012011></SPAN></FONT> </DIV>
<DIV><FONT color=#000080 size=2
face=Arial> 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><FONT color=#000080 size=2 face=Arial></FONT> </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></BODY></HTML>