The zooming assumes the user is interacting with an image described by imgext and imgsize, so you're close. You can try those parameters instead of mapext and mapsize.
On thing to note that the supplied extent will be adjusted to fit the size provided. This means the supplied extent may not match what is used to render the map. These params where always meant to be used with MapServer templates so you don't have to worry about those calculations. Otherwise you' may need to keep track of fitting the extent on the client. Steve ________________________________________ From: [email protected] [[email protected]] on behalf of Burgholzer, Robert (DEQ) [[email protected]] Sent: Thursday, January 16, 2014 4:50 PM To: [email protected] Subject: [mapserver-users] Zooming with CGI Parameter 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 _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
