CGI MapServer
All content on one page (useful for printing, presentation mode etc.)
-
Introduction
General notes regarding the MapServer CGI.
-
Controls
The mapserv CGI binary accepts various CGI variables as described below.
-
Using the CGI Interface at the Commandline
-
Map Context Support Through CGI
OGC Map context files contain layer information that can be used to request WMS layers. For more information on Map Context files see the How-To. MapServer CGI allows you to load a map context through the use of a CONTEXT parameter, and you can point this parameter to a locally stored context file or a context file accessible through a URL.
All content on one page (useful for printing, presentation mode etc.)
This Reference Manual applies to: MapServer 4.6, MapServer 4.8
[imgxy]
I think the [imgxy] parameter is not sufficiently documented here. Here's what I've found in the mapserver-users archives:
When you don't click on the map itself, e.g. you click on the submit-type button of the form, then imgxy will be used as the center point for zooming.
For example, my img size is 220 300, then my form has this line:
<input type="hidden" name="imgxy" value="110 150">
Preferably use
<input type="hidden" name="imgxy" value="[center]">
(When you click on the map then img.x and img.y will be used.)
Edited from
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0203/msg00409.html
(This post suggested using x/2 - 1, y/2-1 values; however, the -1 offset shifts the map a little.)