Hi Robert

Why don't you calculate a new mapext dynamically and then substitute that?

Regards

Robert Sanson

>>> "Burgholzer, Robert (DEQ)" <[email protected]> 17/01/2014 
>>> 11:50 a.m. >>>
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




This email and any attachments are confidential and intended solely for the 
addressee(s). If you are not the intended recipient, please notify us 
immediately and then delete this email from your system.

This message has been scanned for Malware and Viruses by Websense Hosted 
Security.
www.websense.com
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to