[mapserver-users] scalebar - control units based on scale?

Steve Lime Steve.Lime at dnr.state.mn.us
Wed Sep 24 12:47:50 PDT 2008


Hi Mark: There's no easy way in MapServer. The way I'd do it would be
to intervene on the client side and change calls to MapServer to use
scalebar units in feet instead of miles once you cross a scale threshold. You
can do that by appending map.scalebar=units%20feet to the URLs.

Steve

>>> "Mark Volz" <MarkVolz at co.lyon.mn.us> 09/24/08 1:32 PM >>>
Hello,

 

Is there a way to use the current scale to control the units used on the
scalebar?

 

For example I would like the scalebar to display

*	100 feet instead of .019 miles when I am zoomed in
*	12 miles instead of 63000 feet when I am zoomed out

 

 

Mark Volz

GIS Specialist

Lyon County, MN

(507) 532-8218

 





More information about the MapServer-users mailing list