On Apr 24, 11:04 pm, Mark Thompson <[email protected]> wrote:
> Thanks, the new version of the library stops it from erroring out,
> but the line:
>
> var
> distancetoedge=Math.round(bdccGeoDistanceToPolyMtrs(geoXml.docs[0].gpolygon
> s[i],
> point)*3.28);
>
> returns NaN when I display what's in distancetoedge.
As I said (and as it says in that version of the library), I modified
it:
// modified bdccGeoDistanceToPolyMtrs to return additional information
It now returns an object. You either need to change it back, or use
the object to get the information you want.
The object it returns has these properties:
info.p1=p1;
info.p2=p2;
info.index=i+1;
info.distance=dp;
where .distance is the original value.
>
> I'm wondering if geoXml.docs[0].gpolygons[i] just isn't the
> appropriate way to pass a polygon to the function.
I'm pretty sure that is a polygon...
-- Larry
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.