<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18999"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=182351918-07012011><FONT color=#000080
size=2 face=Arial>Thanks for the input I can try that to change the icon and
style.</FONT></SPAN></DIV>
<DIV><SPAN class=182351918-07012011><FONT color=#000080 size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=182351918-07012011><FONT color=#000080 size=2
face=Arial>However, what I really wanted to do is to manage to have base layers
such as yahoo and Google to show up in my legend tree along with the 'overlay'
layers.</FONT></SPAN></DIV>
<DIV><SPAN class=182351918-07012011><FONT color=#000080 size=2 face=Arial>I did
not manage to have the tree working and show up at all once I add yahoo or
Google layers to the map. The tree below works and shows the OSM base layer fine
along with the overlay layers</FONT></SPAN></DIV>
<DIV><SPAN class=182351918-07012011><FONT color=#000080 size=2 face=Arial>Note
that I do not need legend icons for the base layers only for the overlay
layers (as is right now).</FONT></SPAN></DIV>
<DIV><SPAN class=182351918-07012011><FONT color=#000080 size=2 face=Arial>So my
question is how to make the legend tree work when I have Google and yahoo layers
in my map ? (right now it does not work any more and does not show up in the UI
once I add Google or yahoo layers).</FONT></SPAN></DIV>
<DIV><SPAN class=182351918-07012011><FONT color=#000080 size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11pt"><FONT color=#000080
size=2 face=Arial>Karsten</FONT></SPAN>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> IT Intern [mailto:itintern12@gmail.com]
<BR><B>Sent:</B> Friday, January 07, 2011 09:57<BR><B>To:</B> karsten
vennemann<BR><B>Subject:</B> Re: [Users] GeoExt Legend Tree and base layers
?<BR></FONT><BR></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV></DIV>Hello Karsten,<BR><BR>If I understand correctly, you want to change
the icons of your tree panel nodes? <BR><BR>I did this, but I didn't use
the UI as you did so what I tell you may or may not help (but hopefully it
will :) )<BR><BR>You have to change the node's iconCls, you can do this when
the node is instantiated or after suing something
like:<BR><BR>node.setIconCls("yourNodeClass");<BR><BR>Then in CSS you
should:<BR><BR>.x-tree-node img.yourNodeClass, .x-tree-node-collapsed
img.yourNodeClass, .x-tree-node-expanded
img.yourNodeClass{<BR> background:
url("yourImageLocation");<BR>}<BR><BR>Hope this helps,<BR><BR>elshae<BR><BR>
<DIV class=gmail_quote>On Fri, Jan 7, 2011 at 12:21 PM, karsten vennemann
<SPAN dir=ltr><<A
href="mailto:karsten@terragis.net">karsten@terragis.net</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#000080 size=2 face=Arial>Hi,
</FONT></SPAN></DIV>
<DIV><SPAN><FONT color=#000080 size=2 face=Arial>really nobody has a hint
how to do this ?</FONT></SPAN></DIV>
<DIV><SPAN></SPAN><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11pt"><FONT
color=#000080 size=2>Karsten <BR></FONT></SPAN></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(0,0,128) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV dir=ltr lang=en-us align=left>
<HR>
<FONT size=2 face=Tahoma><B>From:</B> karsten vennemann [mailto:<A
href="mailto:karsten@terragis.net" target=_blank>karsten@terragis.net</A>]
<BR><B>Sent:</B> Wednesday, January 05, 2011 16:12<BR><B>To:</B> '<A
href="mailto:users@geoext.org"
target=_blank>users@geoext.org</A>'<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>Hi
all,</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2
face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV><SPAN><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><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><A
href="http://api.geoext.org/1.0/examples/tree.html"
target=_blank>http://api.geoext.org/1.0/examples/tree.html</A> but
with legend icons ...</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><FONT color=#000080 size=2
face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN>I have this
:</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2
face=Arial><SPAN></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>Thanks<BR></SPAN><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 11pt">Karsten
</SPAN></FONT></FONT></FONT></DIV></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>Users
mailing list<BR><A href="mailto:Users@geoext.org">Users@geoext.org</A><BR><A
href="http://www.geoext.org/cgi-bin/mailman/listinfo/users"
target=_blank>http://www.geoext.org/cgi-bin/mailman/listinfo/users</A><BR><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>