[Geomoose-users] zoom to parcel
Devon Piernot
piernotd at uwplatt.edu
Thu Oct 22 13:23:30 EDT 2009
Hello all,
I'm having trouble with a snippet of javascript used to zoom to a
particular parcel after querying for it.
The code is:
GeoMOOSE.zoomToExtent(([shpminx]-500)+','+([shpminy]-500)+','+([shpmaxx]+500)+','+([shpmaxy]+500))
It seems that "shpminx, shpminy, etc." aren't working because my map
simply zooms in to wherever it is positioned at that time. The correct
parcel is highlighted, but the view does not shift to it. Is there a
different term used to represent the extents? I've included the whole
html below:
<tr>
<td><a
href="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))">[TAXKEY]</a></td>
</tr>
<br />
</tr>
Thank you
--
Devon Piernot
GIS / Web Developer
Southwestern Wisconsin Regional Planning Commission
(608) 342-6065
piernotd at uwplatt.edu
www.swwrpc.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20091022/c5f47b40/attachment.html
More information about the Geomoose-users
mailing list