[mapserver-users] legend

Patricio Gigoux pgigoux at munistgo.cl
Thu Apr 4 11:23:35 PST 2002


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