[Geomoose-users] zoom to parcel

Dan Little danlittle at yahoo.com
Thu Oct 22 13:39:06 EDT 2009


Remove the "+','+" and replace with ",".


>
>From: Devon Piernot <piernotd at uwplatt.edu>
>To: geomoose-users <geomoose-users at lists.sourceforge.net>
>Sent: Thu, October 22, 2009 12:23:30 PM
>Subject: [Geomoose-users] zoom to parcel
>
>>
>
>
>
>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
>
>-- 
>Untitled Document  
>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/032c3407/attachment.html


More information about the Geomoose-users mailing list