On Apr 25, 12:59 am, "geocode...@gmail.com" <geocode...@gmail.com> wrote: > On Apr 24, 11:04 pm, Mark Thompson <magica...@gmail.com> 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. >
Looks like you can just change: return info; to: return d; to get the original behavior. -- Larry > > 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 google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.