[mapserver-users] Micro-HowTo Display SCALE

Stephen Woodbridge woodbri at swoodbridge.com
Fri Dec 14 09:26:35 EST 2001


Hi all,

Twan Kogels asked about the values on the MINSCALE and MAXSCALE and how
they relate to a given map.

Go to your demo.html file and search for "scalebar" then replace that
line with the following:

      <td align="right" valign="top"><font size=-3
face="arial,helvetica" color="#FFFFFF">1:[scale]</font>&nbsp;&nbsp;<img
src="[scalebar]"></td>

Now just to the left of your scale bar you will have 1:ssssss.ssss where
ssssss.ssss is the scale of the map at whatever zoom you are at. This is
in the same units as the valuse on MINSCALE/MAXSCALE

PLEASE, add this to the appropriate documentation as and example.

Hope this helps,
  -Steve



More information about the mapserver-users mailing list