[Mapserver-users] CreateLegendIcon and FAQ suggestion

Daniel Morissette dmorissette at dmsolutions.ca
Tue Jul 13 00:56:40 EDT 2004


Murilo Lacerda Yoshida wrote:
>   The problem is this. I used the FAQ suggestion about how to set a line 
> width. OK, it works fine.
> 
>   I have four layer of lines that were changed as the FAQ says.
> 
>   But now when I draw the legend for that four layers, they are all 
> drawn in the same color, that is the color of the first layer drawn. The 
> legend icon still is a line, but with more width (as
> I have set in my mapfile).
> 
>   Help me, please. I don’t know why this is happening… and I can’t see 
> anything wrong in the mapfile…
> 

You didn't mention the version you're using, but we'll assume it's 4.0 
or older. There was a problem with color of legend icons in v4.0 that 
was fixed in v4.2. You should try to upgrade to v4.2. See:
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=608

-- 
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the mapserver-users mailing list