<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Remove the "+','+" and replace with ",".<br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><b><span style="font-weight: bold;">From:</span></b> Devon Piernot &lt;piernotd@uwplatt.edu&gt;<br><b><span style="font-weight: bold;">To:</span></b> geomoose-users &lt;geomoose-users@lists.sourceforge.net&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Thu, October 22, 2009 12:23:30 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [Geomoose-users] zoom to parcel<br></font><br>




Hello all,<br>
<br>
I'm having trouble with a snippet of javascript used to zoom to a
particular parcel after querying for it.&nbsp; <br>
<br>
The code is:<br>
GeoMOOSE.zoomToExtent(([shpminx]-500)+','+([shpminy]-500)+','+([shpmaxx]+500)+','+([shpmaxy]+500))<br>
<br>
It seems that "shpminx, shpminy, etc." aren't working because my map
simply zooms in to wherever it is positioned at that time.&nbsp; The correct
parcel is highlighted, but the view does not shift to it.&nbsp; Is there a
different term used to represent the extents? I've included the whole
html below:<br>
<br>
&lt;tr&gt;<br>
&lt;td&gt;&lt;a
href=<a rel="nofollow" class="moz-txt-link-rfc2396E">"javascript:GeoMOOSE.changeLayerUrl('highlight','php/itemquery.php');
GeoMOOSE.updateLayerParameters('highlight',{'qitm':'TAXKEY','qstring':'[TAXKEY]','layer':'townshipzoning/all'});
GeoMOOSE.turnLayerOn('highlight/all');
GeoMOOSE.zoomToExtent(([shpminx]-500)+','+([shpminy]-500)+','+([shpmaxx]+500)+','+([shpmaxy]+500))"</a>&gt;[TAXKEY]&lt;/a&gt;&lt;/td&gt;<br>
&lt;/tr&gt;<br>
&lt;br /&gt;<br>
&lt;/tr&gt;<br>
<br>
Thank you<br>
<div class="moz-signature">-- <br>
 
<title>Untitled Document</title>
<style type="text/css">
<!--
.name_title {
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;font-size:14px;color:#009;}
.org {
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;font-size:12px;color:#060;}
.links {
font-size:12px;}
-->
</style>
<p><span class="name_title">Devon Piernot<br>
</span>
<span class="org">GIS / Web Developer<br>
Southwestern Wisconsin Regional Planning Commission<br>
</span><span class="links">(608) 342-6065</span><br>
<span class="links"><a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:piernotd@uwplatt.edu" target="_blank" href="mailto:piernotd@uwplatt.edu">piernotd@uwplatt.edu</a><br>
<a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="http://www.swwrpc.org">www.swwrpc.org</a></span></p>
</div>
</div></div></blockquote></div><br>

      </body></html>