[mapserver-users] PHP MapScript zoomrectangle and max extent

Shorthouse, David dshorthouse at eol.org
Sat Dec 10 11:04:38 PST 2011


Folks,

PHP MapScript has a method called zoompoint that has a MaxGeoref
extent parameter to prevent pan/zoom beyond a maximum extent. However,
a similar method, zoomrectangle does not have such a parameter. As a
consequence, using a rubberband on a front-end to zoom may produce an
erroneous extent beyond what could be set had one used zoompoint,
notably if zoomrectangle were executed at the margins of a map image
and the result is of fixed width/height. I am wondering how best to
specify a max extent when using zoomrectangle and welcome any
suggestions.

Cheers,

David P. Shorthouse



More information about the MapServer-users mailing list