On Jun 2, 4:25 pm, hypermod <[email protected]> wrote:
>
> I have found several solutions that will tell you what polygon an
> address is in if you type the address, or if you click on a point, but
> I would like this to happen with markers that are already there, and
> have not been able to modify those scripts to do this.

Make sure all your markers are referenced in an array. Loop through
the array and use markers[i].getLatLng() to get each marker's
location. Then use something like the "click on a point" routine as
you have a point.

Once you know which polygon the point is in, you can use GDownloadUrl
() to pass that information back to a server-side script so that the
database can be updated.

> I have gotten several other fairly complex solutions to work by
> adapting them (for other projects), but not this one.

Which one? We might be able to give more specific advice if we had a
link.

Andrew
--~--~---------~--~----~------------~-------~--~----~
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