[Mapserver-users] scalebar params.

Jason M. Nielsen jnielsen at aero-graphics.com
Fri Jan 23 13:08:49 PST 2004


Wondering if someone might give me a link to detailed information about how to
create scalebar when calling mapserv directly. ie: The parameters and their
effects.  Or perhaps give me a little lesson here in the list.

I have been playing with the dBox stuff and Im having problems getting the
scalebar to generate differently or should I say correctly.

http://192.168.168.201/cgi-bin/mapserv?map=/var/www/html/mymstest/utc.map&mode=scalebar&mapext=0+0+20160+20160&mapsize=600+600

Thats one example of what is being sent.  The later two numbers in mapext change
on each zoom but the numbers on the scalebar refuse to change.  Its always:

0 ----  58 ---- 116mi

What exactly causes this scale to change or how is it calculated?

The above link was generated via:

 document.scalebar_miles.src = MapServer + "?map=" + ms.mapfile +
"&mode=scalebar&mapext=0+0+" + (ms.extent[2] - ms.extent[0]) + "+" +
(ms.extent[3] - ms.extent[1]) + "&mapsize=" + ms.width + "+" + ms.height;


Thanks, Jason.

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/



More information about the MapServer-users mailing list