<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=510370814-19052004><FONT face=Arial color=#0000ff
size=2>Jacob,</FONT></SPAN></DIV>
<DIV><SPAN class=510370814-19052004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=510370814-19052004><FONT face=Arial color=#0000ff size=2>I've
tested the following with Chamelon cvs (see legend3.html attached), I think it
is what you want.</FONT></SPAN></DIV>
<DIV><SPAN class=510370814-19052004><FONT face=Arial color=#0000ff size=2>It
includes class info too. </FONT></SPAN></DIV>
<DIV><SPAN class=510370814-19052004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=510370814-19052004><FONT face=Arial color=#0000ff size=2>I
found the folowing document very helpful: <A
href="http://mapserver.gis.umn.edu/doc40/html-legend-howto.html">http://mapserver.gis.umn.edu/doc40/html-legend-howto.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=510370814-19052004><FONT face=Arial color=#0000ff size=2>Note,
any layers in your mapfile without group names will not have layers displayed at
all.</FONT></SPAN></DIV>
<DIV><SPAN class=510370814-19052004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=510370814-19052004><FONT face=Arial color=#0000ff
size=2>Liz</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
chameleon-bounces@lists.maptools.org
[mailto:chameleon-bounces@lists.maptools.org] <B>On Behalf Of </B>Delfos,
Jacob<BR><B>Sent:</B> May 19, 2004 3:07 AM<BR><B>To:</B>
chameleon@lists.maptools.org<BR><B>Subject:</B> [Chameleon] Legend template
using group rather than layer<BR><BR></FONT></DIV>
<P><FONT face=Arial size=2>Hi All,</FONT> </P>
<P><FONT face=Arial size=2>I've been tying to create a legend template which
generates a legend with tickboxes to turn layers on and off, but which shows
groups as well. If a layer is in a group, I don't want the invidividual layer
to be shown at all.</FONT></P>
<P><FONT face=Arial size=2>At the moment I'm using a basic template which I
think I got off the mapserver website (pasted below).</FONT> </P>
<P><FONT face=Arial size=2>I tried to modify it to show groups, but it doesn't
seem to work. Can anyone give me a hint?</FONT> </P>
<P><FONT face=Arial size=2>Regards,</FONT> </P>
<P><FONT face=Arial size=2>Jacob</FONT> </P><BR>
<P><FONT face=Arial
size=2>---------------------------------------------------------------------------------------------------------------------------------------</FONT></P>
<P><FONT face="Courier New" size=2>[leg_layer_html order=ascending
opt_flag=15]</FONT> <BR><FONT face="Courier New" size=2>[if name=CWC_TMP_LAYER
oper=isnull]</FONT> </P>
<P><FONT face="Courier New" size=2> <tr bgcolor="#FFFFFF"></FONT>
<BR><FONT face="Courier New" size=2> <td
align="center"><input type="checkbox" name="legendlayername[]"
value="[leg_layer_name]"</FONT> <BR><FONT face="Courier New"
size=2> [if name=layer_status oper=eq
value=1]CHECKED[/if]</FONT> <BR><FONT face="Courier New"
size=2> [if name=layer_status oper=eq
value=2]CHECKED[/if]></td></FONT> <BR><FONT face="Courier New"
size=2> [if name=wms_name oper=isnull]</FONT> <BR><FONT
face="Courier New" size=2> <td><a href="#"
onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');"><font
face="Arial, Helvetica, sans-serif"
size="1">[leg_layer_name]</font></a></td></FONT></P>
<P><FONT face="Courier New" size=2> </tr></FONT> <BR><FONT
face="Courier New" size=2> [/if]</FONT> <BR><FONT
face="Courier New" size=2> [if name=wms_name
oper=isset]</FONT> <BR><FONT face="Courier New" size=2>
<td><a href="#"
onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');"><font
face="Arial, Helvetica, sans-serif" size="1">[metadata
name=WMS_TITLE]</font></a></td></FONT></P>
<P><FONT face="Courier New" size=2> </tr></FONT> <BR><FONT
face="Courier New" size=2> [/if]</FONT> <BR><FONT
face="Courier New" size=2>[/if]</FONT> <BR><FONT face="Courier New"
size=2>[/leg_layer_html]</FONT> </P></BLOCKQUOTE></BODY></HTML>