[mapserver-users] Zooming with CGI Parameter

Burgholzer, Robert (DEQ) Robert.Burgholzer at deq.virginia.gov
Thu Jan 16 14:50:43 PST 2014


Hello,
I am trying to get my maps to dynamically Zoom out from a location via a CGI call with URL variables.  I am using mapserver 6.2, and calling in MODE=MAP since I am embedding the call in some HTML, I don't know if that matters.  I am also giving a MAPEXT, but what I would like is to have it ZOOM out from that MAPEXT a bit.

I have tried the URL parameters: ZOOM, and the combo of ZOOMOUT/ZOOMDIR - all seem to have no success.  I have also tried SCALEDENOM and my map dissapears (values between 2400 - 24000 - 240000) - I confess that my topography knowledge is lacking there.  Any help would be appreciated - below are functioning URLs (but they don't scale).

Examples (ZOOM=-1):
http://deq2.bse.vt.edu/cgi-bin/mapserv?map=/var/www/html/mapserv/drupal_wsp_data.map&layers=model_elements&layers=coverage_system_scaled&mode=map&mapext=-83.6754%2036.4698%20-81.2611%2037.2408&MAPSIZE=480%20320&nid=184694&zoom=-1

Examples (ZOOMSIZE=-1&ZOOMDIR=0):
http://deq2.bse.vt.edu/cgi-bin/mapserv?map=/var/www/html/mapserv/drupal_wsp_data.map&layers=model_elements&layers=coverage_system_scaled&mode=map&mapext=-83.6754%2036.4698%20-81.2611%2037.2408&MAPSIZE=480%20320&nid=184694& ZOOMSIZE=-1&ZOOMDIR=0

Robert  Burgholzer
Surface Water Modeler
Virginia DEQ Office of Surface and Ground Water Supply
804-869-3066

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140116/3c1bece3/attachment.html>


More information about the mapserver-users mailing list