2.11. Add a scale bar#

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

2.11.1. Effect#

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

2.11.2. Key code#

SCALEBAR
LABEL
COLOR 0 0 0
ANTIALIAS true
SIZE small
END
POSITION lr
INTERVALS 5
STATUS embed
SIZE 188 5
STYLE 0
UNITS miles
BACKGROUNDCOLOR 255 0 0
IMAGECOLOR 255 255 255
COLOR 128 128 128
OUTLINECOLOR 0 0 255
TRANSPARENT off
END

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