Hi Andrew

Thank you for your response, but I am not sure if I made myself clear.
Your response seemed to be answering a question that I did not mean to
ask.

All the polygons are known. All the marker locations are known. This
information is kept in a MySQL db. The only thing I would need on the
client side is the ability to know the answer to this question:

What markers are in such-and-such polygon (using a drop down list of
the named polygons)?

Even though the user can see clearly which markers are in the polygon,
they want the ability to print out a list of all the marker's
addresses from a given polygon. So they in fact do not need to click
the map at all. I don't think there is any need for JS or an array,
but I may be wrong.

I will keep working on it and let you know the (hopefully) successful
results with a link so you can see what I mean.

Thank you again,

Phil



On Jun 3, 2:57 am, Andrew Leach <[email protected]> wrote:
> 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