[Mapserver-users] zoom to user scale

Daniel Morissette morissette at dmsolutions.ca
Thu Dec 12 10:03:24 PST 2002


Kevin Flanders wrote:
> 
> Is there a way to setup Mapserver so that the user can input the scale they
> wish to zoom to, ie. 100-scale, etc.....thereby enabling them to print a map
> at a set scale.  I know there are issues with scale and the dpi settings for
> individual monitors, but assuming 72 dpi.....can this be done?  Has this
> been done?
> 

Ed's comments about the scale calculation are right, but assuming that
you can live with the fact that scale is just an approximation on the
web, then the PHP MapScript function $mapObj->ZoomScale() could do what
you want.

Daniel
-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------



More information about the MapServer-users mailing list