<!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>Bart,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have experienced a similar problem, though I am
not sure whether it is related to the showing/not showing of a layer. In my
case, upgrading to php_mapscript_42 (or higher) fixed it, because I only had it
happen in php_mapscript_40.</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 Bart Wood<BR>Sent: 16
June 2005 10:20<BR>To: <A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A><BR>Subject:
[Chameleon] Omitting Layer From Map Template Changes Image Colors</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Hello Everyone,<BR>I've created a layer that I
don't want appearing in the legend. I've<BR>modified the LAYER in the map
file to include a meta-data tag called<BR>"SHOWINLEGEND". Then I've
modified the legend template to not<BR>include any layers that have the
SHOWINLEGEND tag. When I do this the<BR>style image (a small blue dot)
changes color in the map. It goes from<BR>blue to brown when I zoom
out. When I zoom in the dot goes back to<BR>blue. Any ideas out
there what is happening?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I've modified the layers definition to look like
this...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>LAYER<BR> NAME "Survey"<BR> STATUS
ON<BR> TYPE POINT<BR> LABELCACHE
FALSE<BR> METADATA<BR> SHOWINLEGEND
"nope"<BR> END<BR> <BR> CLASS<BR> NAME
"OffshrSrv"<BR> MAXSCALE 1999999<BR> STYLE<BR> COLOR 0
204 0<BR> SYMBOL "imgSurveyQueried.gif"<BR> MINSIZE
10 <BR> END <BR> END<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>And the legend template look like
this...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>[if name=SHOWINLEGEND oper=isnull]<BR>
... do all the stuff to show the legend info
...<BR>[/if]</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>_______________________________________________<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><A
href="mailto:jacob.delfos@maunsell.com"></A></FONT> </DIV></BODY></HTML>