calculating scale with Javascript?

Steve Lime steve.lime at DNR.STATE.MN.US
Mon Dec 27 13:54:39 PST 2004


You might want to use the mapserv.js script I wrote. It was designed for
use with jbox and dbox. At worst it has example code to compute scale
assuming you're managing extents with your own stuff. You can find it at
http://maps.dnr.state.mn.us/javascript/mapserv.js. Look for the getscale
method...

Steve

>>> "Shanton, James A" <James.Shanton2 at NSCORP.COM> 12/27/2004 9:20:05
AM >>>
Is there a way to calculate scale with javascript ?



I'm trying to implement jbox image swapping so I can't use [scale]



Thanks !
Jim



More information about the MapServer-users mailing list