<!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.18975"></HEAD>
<BODY>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=074180507-24112010>Hi
all, </SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=074180507-24112010></SPAN></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=074180507-24112010>I
added a legend-panel to my OL page and that works great for all legends
that are vector based WMS layers. I also added multiple TileCache layers to the
map panel. For those I added legendURL parameters to define how the legend
should look in the legendPanel . The legend url is a link to a static png
image. However, whatever I try I am running into problems that the legend
for the TileCache layers does not show up.</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=074180507-24112010>What
is the proper and easiest way to define the legenurls for the two layers I have
been using and to use the png images I already have... see
below </SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=074180507-24112010></SPAN></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=074180507-24112010>My
latest attempt was just to define the legenurl as a parameter see below but
that does not work ....</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=074180507-24112010></SPAN></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=074180507-24112010>var
publiclands = new OpenLayers.Layer.WMS("Public Lands",
"/tilecache/tilecache.py", {layers: 'calipc_public_lands', 'transparent': true,
'legendURL': 'http://myurl.net/legend/publiclands_legend.png'}, {isBaseLayer:
false, 'opacity': 0.6, 'visibility': true} );</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=074180507-24112010>var
watersheds = new OpenLayers.Layer.WMS("Watersheds","/tilecache/tilecache.py",
{layers: 'calipc_watersheds', 'transparent': true, 'legendURL':
''http://myurl.net/legend/watersheds_legend.png'}, {isBaseLayer: false,
'opacity': 1, 'visibility': true} );</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=074180507-24112010></SPAN></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=074180507-24112010>my
layerstore looks like this</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=074180507-24112010></SPAN></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=074180507-24112010>var
legendLayerStore = new
GeoExt.data.LayerStore({<BR>
map: map,<BR>
layers: [publiclands,watersheds,quads,counties]<BR>});</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=074180507-24112010></SPAN></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=074180507-24112010>(quads
and counties legend is working)</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=074180507-24112010></SPAN></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=074180507-24112010>and
</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=074180507-24112010> legendPanel
= new
GeoExt.LegendPanel({<BR>
title:
'legend',<BR>
collapsed :
false,
<BR>
collapsible :
true,<BR>
defaults:
{<BR>
labelCls:
'mylabel',<BR>
style:
'padding:5px'<BR>
},<BR>
bodyStyle:
'padding:5px',<BR>
// width:
350,<BR>
autoScroll:
true,<BR>
layerStore: legendLayerStore<BR>
})</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=074180507-24112010></SPAN></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN class=074180507-24112010>I know
that the 'legendURL' parameter is capitalized by OL , but I am not sure
that is the problem that this is not working for me. If this is not the correct
approach how can it be done ?</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=074180507-24112010></SPAN></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=074180507-24112010>Thanks</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Arial><SPAN
class=074180507-24112010>Karsten</SPAN></FONT></DIV></BODY></HTML>