[mapserver-users] legend
Joe Bussell
joe at otsys.com
Thu Apr 4 13:51:00 PST 2002
Unless you declare a NAME withing the CLASS it will not print in the
legend.
Good Luck
Joe Bussell
On Time Systems
On Thu, Apr 04, 2002 at 03:23:35PM -0400, Patricio Gigoux wrote:
> I have the next in map file
>
> LEGEND
> KEYSIZE 18 12
> LABEL
> TYPE BITMAP
> SIZE MEDIUM
> COLOR 255 255 255
> END
> STATUS ON
> END
>
> and I define the next layers
> LAYER
> NAME pred
> TYPE POLYGON
> MAXSCALE 25000
> DATA pred
> STATUS On
> CLASSITEM 'cod'
> CLASS
> NAME "pred"
> OUTLINECOLOR 181 181 145
> END
> TOLERANCE 3
> END
>
> and
>
> LAYER
> NAME pr1
> TYPE POLYGON
> STATUS On
> DATA prc01
> CLASSITEM 'cl_zna'
> CLASS
> EXPRESSION "A"
> COLOR 79 6 97
> END
> CLASS
> EXPRESSION "A1"
> COLOR 79 6 97
> END
>
> the problem is when I draw legend apear only first layer
> What is my wrong?
>
> Thank in advance
> Patricio
More information about the MapServer-users
mailing list