Matt: Looking at some of my old browse-mode, CGI-mapserver "play" files (circa 2003! how time flies...), my template files always seemed to have the following hidden variables within the form:
<input type="hidden" name="imgxy" value="[center]"> <input type="hidden" name="imgbox" value="[center] [center]"> <input type="hidden" name="imgext" value="[mapext]"> <input type="hidden" name="mapext" value=""> <input type="hidden" name="mode" value="browse"> Accordingly, to invoke the effect you're looking for (i.e. to zoom in from the full extent by some given zoom factor) I suggest including the following fragment in your URL: imgxy=330.0+247.5&imgbox=330.0+247.5+330.0+247.5&imgext=189775.375+4810000+761662.375+5472414.5&mapext=&mode=browse (Also, see the comment by Peter Slizik at the bottom of this page: http://mapserver.gis.umn.edu/docs/reference/cgi .) Hope this helps, -SM -- On Fri, 7 Dec 2007 00:09:04 -0600, Matthew Pettis <[EMAIL PROTECTED]> wrote: >Hi Rich, > >Thanks... the same problem persists when i use 'mode=browse' and use the >resulting image... > >What might be related is the 'img' cgi control... can someone explain this >to me? i read the documentation, but i don't get it... it doesn't show what >value (if any)... here is the documentation entry: > >IMG >> >> The name associated with the inline map image used to record user clicks. >> What actually is passed are two variables, img.x and img.y. >> >> For the CGI Applications this is an essential variable, see the examples >> for sample usage. >> > >there is no indication what type of value should be associated with it (like >the other values in the reference indicate... like "ID [id-string]"), but it >says it is essential and see the examples (which examples, i don't >know...). can someone explain further how this control is used in a get >statement issued to the mapserv binary? > >thanks, >matt > >On Dec 6, 2007 5:20 PM, rich.fromm <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: >> > >> > url: >> > ---- >> > >> http://localhost/cgi-bin/mapserv.exe?zoom=2&img.x=330&img.y=247.5&mapext=189775.375+4810000+761662.375+5472414.5&map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map >> > result: >> > -------- >> > map image of full extent from mapfile is returned... not the zoomed >> image. >> > >> >> i'm not positive, but afaict, zoom is not relevant for map mode. and if >> you're just trying to do a simple request and response, the way to do this >> is to calculate the extent yourself. zoom in, smaller extent. zoom out, >> larger extent. >> >> i might be wrong on this, but this is how i'm doing things. >> >> - rich >> >> -- >> View this message in context: >> http://www.nabble.com/CGI-Mapserver%3A-raw-URL-zooming-manipulation-tf4958616.html#a14203503 >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > > >-- >It is from the wellspring of our despair and the places that we are broken >that we come to repair the world. >-- Murray Waas >