Wasn't it bryan who wrote:
>
>I have a similar question. I have a website with a bunch of geocoded
>locations (mapsforamerica.com). I want to be able to check and see
>whether a point is located in a polygon. The polygon comes from an API
>I'm using that returns a shape like this (below). I looked at Larry's
>link http://econym.org.uk/gmap/epoly.htm. I think the answer is there.
>But I couldn't figure out exactly how to make it work. Any suggestions
>would be greatly appreciated.

You need to persuade your "API" to separate the creation of the polygon 
from the addOverlay

var poly = new GPolygon(...);
map.addOverlay(polygon);

Then you can use poly.Contains(latlng)

The way your code works at the moment, you don't have a reference to the 
polygon, and there's no way to obtain such a reference from the Maps 
API.

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


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