<html>
<body>
Sorry you are so frustrated. It is really as simple as this:<br><br>
&nbsp; $map-&gt;setextent($lox,$loy,$hix,$hiy);<br><br>
where $map is a valid php mapscript object.<br><br>
This must all be done before you make any calls to draw your map, such
as:<br>
$map-&gt;draw()<br><br>
Also, as the previous poster suggests, you can't be reluctant to print
out the input variables to verify that your inputs are correct.<br><br>
r.b.<br><br>
At 10:26 AM 1/24/2005 -0500, kgrootendorst@baird.com wrote:<br><br>
<blockquote type=cite class=cite cite><font size=2>Basically, I'm trying
to follow the GMAP example since they have a similar feature - but trying
to mimic the GMAP is way too complicated.</font> <br>
<font size=2>I'm giving up on this task - it's taking too long.</font>
<br><br>
<font size=2>Thanks for your help.<br>
</font><br>
<font face="Times New Roman, Times" size=5 color="#0000FF">______________________________</font> <br><br>
<br>
<font size=1><b>Kristjan Annus &lt;kristjan@tarkvarastuudio.ee&gt;</b> </font><br><br>
<font size=1>01/24/2005 02:03 AM</font> <br>
<div align="right"><font size=1>To</font><br>
</div>
<font size=1>Kevin Grootendorst &lt;kgrootendorst@BAIRD.COM&gt;</font> <br>
<div align="right"><font size=1>cc</font><br>
<font size=1>Subject</font><br>
</div>
<font size=1>Re: Zoom to custom extent - PHP</font> <br><br>
<br><br>
<br>
<tt>Have you printed out the values&nbsp; of $dfMinX, $dfMinY, $dfMaxX, $dfMaxY <br>
to make shure<br>
they arriwe correctly?<br>
And the SetMapExtents function - I assume its your own function what is <br>
the code of<br>
this function doing?<br><br>
Kristjan<br><br>
&gt;Kristjan,<br>
&gt;Thanks for your reply.&nbsp; I forgot to include this additional PHP code in my<br>
&gt;original<br>
&gt;posting.&nbsp; I have the following:<br>
&gt;<br>
&gt;if ($HTTP_FORM_VARS[&quot;ViewRegion&quot;])<br>
&gt;&nbsp;&nbsp;&nbsp; {<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (ereg(&quot;(-?[0-9]+),(-?[0-9]+),(-?[0-9]+),(-?[0-9]+)&quot;,<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $HTTP_FORM_VARS[&quot;ViewRegion&quot;], $ProvExtents))<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $dfMinX = doubleval($ProvExtents[1]);<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $dfMinY = doubleval($ProvExtents[2]);<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $dfMaxX = doubleval($ProvExtents[3]);<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $dfMaxY = doubleval($ProvExtents[4]);<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetMapExtents($dfMinX, $dfMinY, $dfMaxX, $dfMaxY);<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&gt;&nbsp;&nbsp;&nbsp; }<br>
&gt;<br>
&gt;But no luck yet.&nbsp; My page just reloads with the max extents of the map.<br>
&gt;<br>
&gt;Kevin<br>
&gt;&nbsp; <br>
&gt;<br><br>
<br>
</tt></blockquote>
<x-sigsep><p></x-sigsep>
Robert Burgholzer<br>
Environmental Engineer<br>
MapTech Inc.<br>
phone: 804-869-3066<br>
<a href="http://www.maptech-inc.com/" eudora="autourl">http://www.maptech-inc.com/</a></body>
</html>