<html>
<body>
Sorry you are so frustrated. It is really as simple as this:<br><br>
$map->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->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 <kristjan@tarkvarastuudio.ee></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 <kgrootendorst@BAIRD.COM></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 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>
>Kristjan,<br>
>Thanks for your reply. I forgot to include this additional PHP code in my<br>
>original<br>
>posting. I have the following:<br>
><br>
>if ($HTTP_FORM_VARS["ViewRegion"])<br>
> {<br>
> if (ereg("(-?[0-9]+),(-?[0-9]+),(-?[0-9]+),(-?[0-9]+)",<br>
> $HTTP_FORM_VARS["ViewRegion"], $ProvExtents))<br>
> {<br>
> $dfMinX = doubleval($ProvExtents[1]);<br>
> $dfMinY = doubleval($ProvExtents[2]);<br>
> $dfMaxX = doubleval($ProvExtents[3]);<br>
> $dfMaxY = doubleval($ProvExtents[4]);<br>
><br>
> SetMapExtents($dfMinX, $dfMinY, $dfMaxX, $dfMaxY);<br>
> }<br>
> }<br>
><br>
>But no luck yet. My page just reloads with the max extents of the map.<br>
><br>
>Kevin<br>
> <br>
><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>