<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16440"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial><SPAN class=014061700-12052012>In a
Ext.tree.TreePanel I am grouping layers as below. When the layer is a tiled
(tile cache layer) I would like to use an alternate image for the legend to
still show up </SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=014061700-12052012>so I wanted to use
legendURL for the legend image</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>// add legend images for tiled
layers <BR> var
regierungsbezirke_rec =
mapPanel.layers.getByLayer(regierungsbezirke_tile);<BR>regierungsbezirke_rec.set("legendURL",
"<A
href="http://vfsviewer.vfs-muenchen.de/legend/regierungsbezirke.gif">http://vfsviewer.vfs-muenchen.de/legend/regierungsbezirke.gif</A>");</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=014061700-12052012><FONT size=2 face=Arial>However i could not
get it show up in geoext 1.1 in the tree yet - any hints what I am
doing wrong ?</FONT></SPAN></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=014061700-12052012>Karsten</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=014061700-12052012>// in layer
tree</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=014061700-12052012>...</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial>{nodeType:
"gx_layercontainer",<BR> text:
'Kartendaten',<BR> layerStore:
mapPanel.layers,<BR> expanded: false,<BR>
loader: {<BR> filter: function(record)
{ <BR> return
record.get("layer").group == "Kartendaten";// this.group;
<BR>
},<BR> baseAttrs:
{<BR>
uiProvider: "custom_ui"<BR>
},<BR> createNode: function(attr)
{<BR> // add a
WMS legend to each node
created<BR> if
(GeoExt.WMSLegend.supports(mapPanel.layers.getByLayer(attr.layer))){<BR>
attr.component =
{<BR>
xtype:
"gx_wmslegend",<BR>
layerRecord:
mapPanel.layers.getByLayer(attr.layer),<BR>
showTitle:
false,<BR>
cls:
"legend"<BR>
};<BR>
}
<BR> return
GeoExt.tree.LayerLoader.prototype.createNode.call(this,
attr);<BR> }<BR>
} <BR>}</FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=014061700-12052012>...</SPAN></FONT></DIV><br/><br/><br><br><FONT face="Tahoma" size="2"><br>=======<br>Email scanned by PC Tools - No viruses or spyware found.<br>(Email Guard: 9.0.0.888, Virus/Spyware Database: 6.19640)<br><a href=http://www.pctools.com/?cclick=EmailFooterClean_51>http://www.pctools.com</a><br>=======</FONT>
</BODY></HTML>