automatilcally do pan

Frank Koormann frank.koormann at intevation.de
Tue Mar 27 11:06:43 PST 2001


* Andy Bernat (abernatj at yahoo.com) [010326 18:40]:
> Frank,
> Would you be so kind as to explain how you figured out the image size
> from the information in the url?  I've been having some problems
> getting my map to display the way I want and I'm sure it's because I
> don't have a good grasp of what some of these parameters are and how
> they are used by mapserve.  

I read from the URL how the size of the image should be: The default for
the CGI-parameter imgxy has to be the center of the map. Since this is 
299.5, 299.5 in the example below the image size should be 600x600 to 
avoid unintended pan: Usually using a refresh or change visual layers
mapserver generates the new image in pan-mode. If in such cases the
imgxy is not the center of the image, panning occurs as a side effect.

> http://pc-simac.cicese.mx/cgi-bin/mapserv?mode=browse&zoomdir=0&zoomsize=2&layer=basaltos&imgxy=299.5+299.5&imgext=-657555.174556+-601360.777736+753555.174556+633360.777736&map=%2Fhome%2Fhttpd%2Fhtml%2Fgeoejercicios%2Finter02%2Finter02.map&savequery=true&mapext=shapes
> > > 

Regards,

    Frank


-- 
Frank Koormann                              http://intevation.net/~frank/
 Professional Service around Free Software         http://intevation.net/
 FreeGIS Project                                   http://freegis.org/



More information about the MapServer-users mailing list