[mapserver-users] legend

Puneet Kishor pkishor at GeoAnalytics.com
Thu Apr 4 15:03:04 EST 2002


legend depends on the existence of a CLASS NAME. Take away the NAME and the
legend won't be created for that layer.

> -----Original Message-----
> From: Patricio Gigoux [mailto:pgigoux at munistgo.cl]
> Sent: Thursday, April 04, 2002 1:24 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [mapserver-users] legend 
> 
> 
> 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