The detection issue has been answered elsewhere, however you are
facing a couple issues. One labour intensive approach would be to
create polygons of all the landmasses. You could then simply determine
which polygon the point fell within or near. There is a point in
polygon script around. Once the closest polygon was determined, you
could calculate the closest point on the polygon and create a marker
there. You could make the marker slideable if you modified the snap to
polyline script which someone (Bjorn?) developed.

On Sep 29, 9:20 am, <[EMAIL PROTECTED]> wrote:
> Need to determine if the map was clicked over land or ocean
> Anyone have experience setting something like this up?
> The idea is to detect whether the user clicked over land or ocean, and, if
> clicked over land, snap to nearest coastline/ocean.
>
> Any ideas?
--~--~---------~--~----~------------~-------~--~----~
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