<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi Bill,<div><br></div><div>You place it in itemquery.php.</div><div><br></div><div>After</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if(($totalResults == 1 and $firstResult != false) or ($totalResults &gt;= 1 and $zoomToFirst == true)) {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>$bounds = $firstResult-&gt;bounds;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>printf('GeoMOOSE.zoomToExtent(%f,%f,%f,%f);', $bounds-&gt;minx, $bounds-&gt;miny, $bounds-&gt;maxx, $bounds-&gt;maxy);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div></div><div><br></div><div>&nbsp;That will be with GM 2.0 but with 2.2 the query.php, which I haven't tried it yet- you may have to do a little research.</div><div><br></div><div>All the best.</div><div><br></div><div>Franz Okyere</div><div><br></div><div>GIS Specialist</div><div><br></div><div>Ghana</div><div><br><hr id="stopSpelling">From: bharbour@bcbe.org<br>To: franzzoa@hotmail.com<br>Date: Fri, 10 Sep 2010 09:23:55 -0500<br>Subject: RE: [Geomoose-users] Zoom To Selected<br><br>


<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">



<style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:blue;text-decoration:underline;}
.ExternalClass p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass p.ecxecxmsonormal, .ExternalClass li.ecxecxmsonormal, .ExternalClass div.ecxecxmsonormal
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass p.ecxecxmsonormal1, .ExternalClass li.ecxecxmsonormal1, .ExternalClass div.ecxecxmsonormal1
{margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:Arial;color:black;}
.ExternalClass span.ecxecxmsohyperlink1
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed1
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxecxemailstyle171
{color:black;}
.ExternalClass span.ecxEmailStyle29
{color:black;}
@page Section1
{size:8.5in 11.0in;}
.ExternalClass div.ecxSection1
{page:Section1;}

</style>





<div class="ecxSection1">

<p class="ecxMsoNormal"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">Franz:</span></font></p>

<p class="ecxMsoNormal"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">Thanks for offering the help!!</span></font></p>

<p class="ecxMsoNormal"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">Just were should I replace or insert the
code you sent???</span></font></p>

<p class="ecxMsoNormal"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">&nbsp;</span></font></p>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">Baldwin County Public Schools</span></font></p>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">Bill</span></font><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black"> Harbour</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">GIS Coordinator</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">Information Technology Services</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">Baldwin</span></font><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black"> County</span></font><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black"> Board of Education</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">1071<strong><b><font face="Arial"><span style="font-family:Arial">&nbsp;</span></font></b></strong> B Ave</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">Loxley</span></font><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">, AL 36551</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">V 251-580-1916</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">F 251-972-6851</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">Office 251-972-6850</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black"><a href="mailto:bharbour@bcbe.org">bharbour@bcbe.org</a></span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black"><a href="http://www.bcbe.org" target="_blank">http://www.bcbe.org</a></span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><em><i><font size="1" color="black" face="Times New Roman"><span style="font-size:7.5pt;color:black">"When life gets too unreal, sit down
with a good book."</span></font></i></em><font size="1" color="black"><span style="font-size:7.5pt;color:black"> - Garrison Keillor</span></font></p>

</div>

</div>

<div>

<div class="ecxMsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">

<hr size="2" width="100%" align="center">

</span></font></div>

<p class="ecxMsoNormal"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> FRANZ OKYERE
[mailto:franzzoa@hotmail.com] <br>
<b><span style="font-weight:bold">Sent:</span></b> Friday, September 10, 2010
4:55 AM<br>
<b><span style="font-weight:bold">To:</span></b> Bill Harbour<br>
<b><span style="font-weight:bold">Subject:</span></b> RE: [Geomoose-users] Zoom
To Selected</span></font></p>

</div>

<p class="ecxMsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">&nbsp;</span></font></p>

<div>

<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">Dear Bill,</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">Try this if you dare. If you can access to the results of
your query within an array, then in the query.php you can adopt the following
code which works for me in GM 2.0. What happens is that you get an automatic
zoom to the results of your query.&nbsp;</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp;&nbsp;&nbsp;</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">for( $m = 0; $m &lt; sizeof($maind); $m++){</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp;&nbsp; &nbsp; &nbsp; $fisult = $resultFeatures[$m];</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp;&nbsp; &nbsp; &nbsp; $bounj = $fisult-&gt;bounds;
&nbsp;#Monica lewinski</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><span class="ecxapple-tab-span"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">$shpminx =
$bounj-&gt;minx;</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><span class="ecxapple-tab-span"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">$shpminy =
$bounj-&gt;miny;</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><span class="ecxapple-tab-span"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">$shpmaxx =
$bounj-&gt;maxx;</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><span class="ecxapple-tab-span"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">$shpmaxy =
$bounj-&gt;maxy;</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><span class="ecxapple-tab-span"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp;&nbsp;print "&lt;p&gt;" . "&lt;img
src='find1.png'&gt;" . "&lt;a href=\"javascript:
GeoMOOSE.zoomToExtent($shpminx,$shpminy,$shpmaxx,$shpmaxy)\"&gt;" .
"&lt;strong&gt;" .$mapin[$m] &nbsp;. "&lt;/strong&gt;" .
"&lt;/a&gt;". "&lt;/p&gt;". "&lt;p&gt;" .
$mowner[$m] . "&lt;/p&gt;";<span class="ecxapple-tab-span">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&nbsp;</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>

</div>

<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">Franz Okyere</span></font></p>

<div>

<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">GIS Specialist</span></font></p>

<div>

<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp;</span></font></p>

<div class="ecxMsoNormal" align="center" style="text-align:center"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">

<hr size="2" width="100%" align="center" id="ecxstopSpelling">

</span></font></div>

<p class="ecxMsoNormal" style="margin-bottom:12.0pt"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">From: bharbour@bcbe.org<br>
To: geomoose-users@lists.sourceforge.net<br>
Date: Thu, 9 Sep 2010 15:38:05 -0500<br>
Subject: [Geomoose-users] Zoom To Selected</span></font></p>

<div>

<p class="ecxMsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:black">Is there an equivalent to ESRI’s zoom to
selected???&nbsp; I’m using a query service to find subdivision(s).&nbsp; All
the parcels in the sub get highlighted.&nbsp;&nbsp; If I do a search that
contains parts of a sub name…say the first letters in multiple phases, then all
of those subs are hightlighted.&nbsp; Is there a way to tell the query service
to zoom to the extent of the selected features??</span></font></p>

<p class="ecxMsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:black">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:black">Thanks,</span></font></p>

<p class="ecxMsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:black">&nbsp;</span></font></p>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">Baldwin County Public Schools</span></font></p>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">Bill</span></font><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> Harbour</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">GIS Coordinator</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">Information Technology Services</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">Baldwin</span></font><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> County</span></font><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">
Board of Education</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">1071<strong><b><font face="Arial"><span style="font-family:Arial">&nbsp;</span></font></b></strong> B Ave</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">Loxley</span></font><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">, AL 36551</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">V 251-580-1916</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">F 251-972-6851</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">Office 251-972-6850</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black"><a href="mailto:bharbour@bcbe.org">bharbour@bcbe.org</a></span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black"><a href="http://www.bcbe.org" target="_blank">http://www.bcbe.org</a></span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><em><i><font size="1" color="black" face="Arial"><span style="font-size:7.5pt;font-family:Arial;color:black">"When life gets too
unreal, sit down with a good book."</span></font></i></em><font size="1" face="Tahoma"><span style="font-size:7.5pt;font-family:Tahoma"> - Garrison
Keillor</span></font><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">&nbsp; </span></font></p>

</div>

</div>

<p class="ecxMsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:black">&nbsp;</span></font></p>

</div>

<p class="ecxMsoNormal"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"><br>
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by: Show off your parallel programming
skills. Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd<br>
_______________________________________________ Geomoose-users mailing list
Geomoose-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geomoose-users</span></font></p>

</div>

</div>

</div></div>                                               </body>
</html>