[Mapserver-users] Setting scale of map while using dbox.

Jason M. Nielsen jnielsen at aero-graphics.com
Mon Feb 2 17:51:07 EST 2004


I was wondering if anyone might be able to tell me how to go about sumbitting a
fixed scale (ie: typed in by user) to mapserver when using the dbox stuff.

Below is an idea of how to get the scale set but I do not see where "scale" is
used in the mapserv.js file. I know a parameter can be passed directly to
mapserv cgi and I also noticed functions such as "function
Mapserv_setextentfromscale(x, y, scale)" but I dont see where I get my
coordinates from (ie: mapx, mapy if just using regular html).

I just have a refresh button at the moment to press once the scale is set.

<font class="fontbold">Scale=> 1:</font><input class="inputfield" size="10"
maxlength="10" type="text" name="scale_ratio" title="scale ratio" alt="scale
ratio" value="" onChange="ms.scale=this.value">

Would the right was to do this be to call the above function directly with the
x, y and scale?

TIA



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



More information about the mapserver-users mailing list