<!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.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=821560816-13122004><FONT face=Arial color=#0000ff size=2>What 
version of mapserver?</FONT></SPAN></DIV>
<DIV><SPAN class=821560816-13122004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=821560816-13122004><FONT face=Arial color=#0000ff size=2>There 
was a bug with symbol caching in earlier 4.x releases.</FONT></SPAN></DIV>
<DIV><SPAN class=821560816-13122004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=821560816-13122004><FONT face=Arial color=#0000ff 
size=2>-e</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> UMN MapServer 
  Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Abe 
  Gillespie<BR><B>Sent:</B> Monday, December 13, 2004 8:02 AM<BR><B>To:</B> 
  MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] Custom 
  shape changes color<BR><BR></FONT></DIV><!-- Converted from text/enriched format -->
  <DIV>I created a measure tool and use the following layer for the lines: 
  </DIV><BR>
  <DIV><TT>LAYER </DIV>
  <DIV>NAME "custom_solid_line" </DIV>
  <DIV>STATUS ON </DIV>
  <DIV>TYPE LINE </DIV>
  <DIV>POSTLABELCACHE true </DIV>
  <DIV>CLASS </DIV>
  <DIV>SYMBOL "solid" </DIV>
  <DIV>COLOR 255 255 0 </DIV>
  <DIV>SIZE 2 </DIV>
  <DIV>END </DIV>
  <DIV>END </DIV><BR>
  <DIV></TT>I add lines to the map with code similar to the following: 
</DIV><BR>
  <DIV>$line = ms_newLineObj(); </DIV>
  <DIV>$line-&gt;addXY($x, $y); </DIV>
  <DIV>$shp = ms_newShapeObj(MS_SHAPE_LINE); </DIV>
  <DIV>$shp-&gt;add($line); </DIV>
  <DIV>$layer = $map-&gt;getLayerByName("custom_solid_line"); </DIV>
  <DIV>$retVal = $layer-&gt;addFeature($shp); </DIV>
  <DIV>$shp-&gt;free(); </DIV>
  <DIV>$line-&gt;free(); </DIV>
  <DIV>// Draw the map later on ... </DIV><BR>
  <DIV>The problem is the lines don't always stay yellow. I've seen them green 
  and pinkish too. The color seems to depend on other visible layers. I've also 
  seen the same phenomenon with the extents box in the reference map. In fact, 
  the color of the lines and the extent box is always the same. I.e.: when one 
  changes color the other does too. I do draw my reference map in a sort of 
  nonstandard way though by drawing the map and ref. map separately and then 
  pasting them together. </DIV><BR>
  <DIV>Thanks for any help. </DIV>
  <DIV>-Abe</DIV></BLOCKQUOTE></BODY></HTML>