legend

Gregor Mosheh gregor at HOSTGIS.COM
Mon Dec 18 15:27:34 EST 2006


> how is the correct sintax for LEGEND? how is it used on the map file?

The LEGEND block goes in the main block, not in a layer.

Here's an example, using a TrueType font, and embedded into the upper-left
corner of the map image.

LEGEND
  IMAGECOLOR 255 255 255
  KEYSIZE 12 12
  LABEL
    TYPE truetype
    FONT "Arial"
    SIZE 9
    COLOR 0 0 0
  END
  STATUS embed
  POSITION ul
END



More information about the mapserver-users mailing list