<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Ken-Ichi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>You can adjust your legend template to look for a
metadata-value that you made up, and then it can use boolean logic to determine
whether or not to show the layer in the legend. Have a look at <A
href="http://lists.maptools.org/pipermail/chameleon/2004-October/001526.html">http://lists.maptools.org/pipermail/chameleon/2004-October/001526.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In short: if a layer has the same name as another
layer, they will turn on and off at the same time, even if only one layer
shows in the legend. That way you can emulate groups, while also having control
of individual layers. In your case, I would add a layer to your mapfile,
with "STATUS DEFAULT", and then use a metadata entry to prevent it from showing
in the legend.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: <A
href="mailto:chameleon-bounces@lists.maptools.org">chameleon-bounces@lists.maptools.org</A>
[mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Ken-ichi<BR>Sent: 2
June 2005 06:03<BR>To: <A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A><BR>Subject:
[Chameleon] ungrouped layers and legendtemplate</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Hi all. I feel like this is a problem I have
solved in the past but I <BR>just can't seem to figure it out: my layers in a
map file are organized <BR>into GROUPs, and I have an HTML legend template that
works fine with the <BR>LegendTemplate widget. However, when I have a
layer that isn't a part <BR>of a group, it disappears whenever the map is
updated (update, zoom, <BR>pan, whatever). I was hoping to use ungrouping
layers as a way of <BR>hiding them from the legend while still displaying them
on the map. Is <BR>Chameleon actually looking to some list of layers
generated by <BR>LegendTemplate when it draws an updated map? Is there a
better way to <BR>effectively "hide" some layers from the legend in
Chameleon?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>-Ken-ichi<BR>_______________________________________________<BR>Chameleon
mailing list<BR><A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<DIV><FONT face=Arial size=2>JACOB DELFOS<BR>SPATIAL INFORMATION
ANALYST<BR>Maunsell Australia Pty Ltd<BR>629 Newcastle Street, WA 6007<BR>PO Box
81, WA 6902<BR>Leederville <BR>Western Australia<BR>ABN 20 093 846
925</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Tel + 61 8 9281
6185<BR>Fax + 61 8 9281 6297<BR><A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A></FONT></DIV></BODY></HTML>