<br><font size=2 face="sans-serif">I think you should ask on the geoext
mailing list</font>
<br><font size=2 face="sans-serif">Steve<br>
</font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Cristhian Boujon <cristhianboujon@gmail.com>@lists.osgeo.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : openlayers-users-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">2013-07-26 11:41</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">openlayers-users@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[OpenLayers-Users] Change default image
in tree node with GeoExt/Extjs</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=3>Hello all,</font>
<table width=100%>
<tr>
<td width=0%>
<td width=99%><font size=3>I'm using GeoExt (based on ExtJs) to create
a tree. In each node I want the corresponding image at left instead of
the default image like </font><a href=http://todosmiscomercios.com.ar/ target=_blank><font size=3 color=blue><u>this
site</u></font></a><font size=3>. How can I do it?</font>
<p><font size=3>Here is part of my code:</font>
<br><tt><font size=3><br>
<br>
var bpn = new OpenLayers.Layer.WMS("bpn", <br>
url,<br>
{<br>
LAYERS: [ 'Año 2004', 'Año 2005', 'Año 2006',
'Año 2007', 'Año 2009'],<br>
format: "image/png",<br>
transparent: "true",<br>
projection: 'EPSG:4326'<br>
},<br>
{<br>
buffer: 0, <br>
displayOutsideMaxExtent: true,<br>
isBaseLayer: false,<br>
displayInLayerSwitcher: false,<br>
yx: {'EPSG:4326' : true}<br>
});<br>
<br>
var treeConfig = [<br>
{<br>
nodeType: "gx_layer",<br>
layer: bpn,<br>
isLeaf: false,<br>
<br>
loader: {<br>
param: "LAYERS",<br>
<br>
},<br>
expanded: false<br>
}];<br>
<br>
tree = new Ext.tree.TreePanel({<br>
border: true,<br>
region: "west",<br>
title: "Entre Ríos",<br>
width: 250,<br>
split: true,<br>
collapsible: true,<br>
collapseMode: "mini",<br>
autoScroll: true,<br>
<br>
loader: new Ext.tree.TreeLoader({<br>
applyLoader: true,<br>
uiProviders: {<br>
"layernodeui": LayerNodeUI<br>
}<br>
}),<br>
root: {<br>
nodeType: "async",<br>
children: treeConfig<br>
}, <br>
rootVisible: false,<br>
lines: false,<br>
});<br>
</font></tt><font size=3 face="Roman"><br>
<br>
</font></table>
<br>
<br><font size=3 face="Arial">Each layer (node) 'Año 2004', 'Año 2005',
'Año 2006', 'Año 2007', 'Año 2009' has a different image. What should I
change in treeConfig? <br>
<br>
<br>
</font>
<br><font size=3>Regards,<br>
</font>
<br><font size=3>-- <br>
Cristhian A. Boujon.<br>
</font><tt><font size=2>_______________________________________________<br>
Users mailing list<br>
Users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/openlayers-users<br>
</font></tt>
<br>
<br>
<br>