Limiting a zoom.
Dylan Keon
dbkeon.ml at GMAIL.COM
Fri Apr 1 22:24:20 PST 2005
On 04/01/2005 09:29 PM Blammo wrote the following:
> All,
>
> Is there a way to have the zoom value max out at some value, where the
> map can't be zoomed out any further, or even in the reverse, where the
> user couldn't zoom in past a certain point. Not just not display (as
> with the MIN/MAXSCALE values in the MAP file, but not to even have the
> scale of the map go beyond an upper or lower threshold.
>
> What I would like to do when these upper and lower thresholds are reach
> is to simply pan and recenter the view from the picked area. Basically
> not zoom out any further than the reference image for example.
MINSCALE and MAXSCALE in the WEB object should do what you want. Note
that this is different than MIN/MAXSCALE in the LAYER object.
http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#web
--Dylan
More information about the MapServer-users
mailing list