I had a typo in the 2nd URL... it should be:<br><br>url:<br>
----<br>
<a href="http://localhost/cgi-bin/mapserv.exe?zoom=2&amp;img.x=330&amp;img.y=247.5&amp;mapext=189775.375+4810000+761662.375+5472414.5&amp;map=C:/ms4w/Apache/htdocs/tst/race.map&amp;layer=county&amp;mode=map">http://localhost/cgi-bin/mapserv.exe?zoom=2&amp;img.x=330&amp;img.y=247.5&amp;mapext=189775.375+4810000+761662.375+5472414.5&amp;map=C:/ms4w/Apache/htdocs/tst/race.map&amp;layer=county&amp;mode=map
</a><br><br>result:<br>--------<br>map image of full extent from mapfile is returned... not the zoomed image.<br><br><br><div class="gmail_quote">On Dec 6, 2007 3:03 PM, Matthew Pettis &lt;<a href="mailto:matthew.pettis@gmail.com">
matthew.pettis@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>I am trying to just do raw CGI calls to do some zooming (trying to see what the necessary raw CGI controls are to do certain functions, don&#39;t want to use templates to do zooming just yet until i understand this), but can&#39;t seem to do it.&nbsp; I try to pass a zoom parameter in, but I always get the map image of the extent set in my .map file.&nbsp; Can someone help me with the right incantation I need to pass in the address bar?
<br><br>here&#39;s what I have tried to no avail:<br><br>relevant mapfile settings (what i think is relevant):<br>---------------------------------------------------------------------------<br>&nbsp;&nbsp;&nbsp; ################<br>&nbsp;&nbsp;&nbsp; # Map attributes
<br>&nbsp;&nbsp;&nbsp; ################<br>&nbsp; IMAGETYPE&nbsp;&nbsp; PNG<br>&nbsp; EXTENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 189775.375 4810000 761662.375 5472414.5<br>&nbsp; SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 660 495<br>---------------------------------------------------------------------------<br>
<br><br>=========================<br>url (no zoom) that works:<br>------------------------------------<br><a href="http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/tst/race.map&amp;layer=county&amp;mode=map" target="_blank">

http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/tst/race.map&amp;layer=county&amp;mode=map</a><br>result:<br>---------<br>the right map of full extent is displayed in my browser<br><br>...<br><br>url:<br>
----<br>
<a href="http://localhost/cgi-bin/mapserv.exe?zoom=2&amp;img.x=330&amp;img.y=247.5&amp;mapext=&amp;189775.375+4810000+761662.375+5472414.5&amp;map=C:/ms4w/Apache/htdocs/tst/race.map&amp;layer=county&amp;mode=map" target="_blank">
http://localhost/cgi-bin/mapserv.exe?zoom=2&amp;img.x=330&amp;img.y=247.5&amp;mapext=&amp;189775.375+4810000+761662.375+5472414.5&amp;map=C:/ms4w/Apache/htdocs/tst/race.map&amp;layer=county&amp;mode=map
</a><br>
<br>result:<br>
---------<br>
msDrawMap(): Image handling error. Unable to initialize image. <br>

msCalculateScale(): General error message. Invalid image extent,
minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. <br>

msCalculateScale(): General error message. Invalid image extent,
minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000.<br>
<br>=========================<br><font color="#888888">
<br clear="all"><br>-- <br>It is from the wellspring of our despair and the places that we are broken that we come to repair the world.<br>-- Murray Waas
</font></blockquote></div><br><br clear="all"><br>-- <br>It is from the wellspring of our despair and the places that we are broken that we come to repair the world.<br>-- Murray Waas