> Alternately I guess, is there a way to check to see if a polyline goes
> through a given point?
>
> I could loop through my array of visible polylines and do a yes or no
> if I knew what function(s) to feed data to.

It's not as easy as that, polylines are defined by vertex.  I'd guess
you'd still want to match a polyline if it crossed your point some way
from the vertices on either side?
Then there's the question of many millimetres of precision?  A point
is a point, a polyline might pass within 1km or 0.1mm of it, you need
to draw a distinction about how close suits your needs.   It's
probably more desirable to find polylines passing within Xm of your
point, than actually dead-bang on it.

There are tools to calculate distance from a point to a poly -
   http://maps.forum.nu/gm_mouse_dist_to_line.html
You could use your loop-through-my-polys technique to determine each
distance, and select the ones within your chosen range.

cheers, Ross K

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to