Hi Bob,<br><br>Do you display all the search results? If so then, you can embed a zoom button next to the search results with its onclick method defined as follows - <br><br><i>onClick="myKaMap.zoomToExtents(50,50,60,60)"</i><br>
<br>So when the zoom button is clicked corresponding to a search result, it will zoom to corresponding area in the map. In my example, it will zoom to area bounded by the co-ordinates (50,50) and (60,60). You might have to code these values depending on ur results.<br>
<br>Also, Ominiverdi's blog captures a lot of other intricacies on Search. You can see the blog <a href="http://ka-map.ominiverdi.org/wiki/index.php/Search_By_Filter_Implementation">here</a><br><br>Thanks,<br>Raghavendra<br>
<br><div class="gmail_quote">On <i>Mon Nov 10 16:42:08 EST 2008</i>
, Bistrais, Bob wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><b>Bistrais, Bob</b>
<a href="mailto:ka-map-users%40lists.maptools.org?Subject=%5Bka-Map-users%5D%20Zoom-to-search%20result&In-Reply-To=" title="[ka-Map-users] Zoom-to-search result">Bob.Bistrais at maine.gov
</a><br>
<i>Mon Nov 10 16:42:08 EST 2008</i>
<ul><li>Previous message: <a href="http://lists.maptools.org/pipermail/ka-map-users/2008-November/003748.html">[ka-Map-users] Re: ka-Map-users Digest, Vol 43, Issue 4
</a></li><li>Next message: <a href="http://lists.maptools.org/pipermail/ka-map-users/2008-November/003750.html">[ka-Map-users] problem with overlay in ie7
</a></li><li> <b>Messages sorted by:</b>
<a href="http://lists.maptools.org/pipermail/ka-map-users/2008-November/date.html#3749">[ date ]</a>
<a href="http://lists.maptools.org/pipermail/ka-map-users/2008-November/thread.html#3749">[ thread ]</a>
<a href="http://lists.maptools.org/pipermail/ka-map-users/2008-November/subject.html#3749">[ subject ]</a>
<a href="http://lists.maptools.org/pipermail/ka-map-users/2008-November/author.html#3749">[ author ]</a>
</li></ul>
<hr>
<pre>I want to set up a tool where a user can select a town name from a drop<br>box, and automatically zoom to it. It seems simple enough. The part I<br>have not yet figured out is how to automatically zoom. I can get my<br>
search results, but still need to click the magnifying glass icon to<br>zoom to it. Has anyone tried this before, and could you point me in the<br>right direction?<br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.maptools.org/pipermail/ka-map-users/attachments/20081110/d1eb8067/attachment.html">http://lists.maptools.org/pipermail/ka-map-users/attachments/20081110/d1eb8067/attachment.html</a><br></pre></blockquote>
</div><br>