<!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 dir=ltr align=left><SPAN class=120451917-07012011><FONT color=#000080
size=2 face=Arial>Hi, </FONT></SPAN></DIV>
<DIV><SPAN class=120451917-07012011><FONT color=#000080 size=2 face=Arial>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></DIV></SPAN>
<BLOCKQUOTE
style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> karsten vennemann
[mailto:karsten@terragis.net] <BR><B>Sent:</B> Wednesday, January 05, 2011
16:12<BR><B>To:</B> 'users@geoext.org'<BR><B>Subject:</B> GeoExt Legend Tree
and base layers ?<BR></FONT><BR></DIV>
<DIV></DIV>
<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></BLOCKQUOTE></BODY></HTML>