2.12. Add Legend#

The map legend of MapServer can be added to or separated from the map.

2.12.1. Effect#

http://webgis.pub/cgi-bin/mapserv?map=/owg/mfa9.map&layer=states&layer=states_label&layer=topo&mode=map

2.12.2. Key code#

LEGEND
STATUS embed
IMAGECOLOR 230 230 230
LABEL
TYPE truetype
FONT "arial"
COLOR 0 0 0
SIZE 10
ANTIALIAS true
END
END

Where STATUS is set to embed , which can be directly mosaicked into the generated map.