On Oct 20, 10:27 am, Anthony <[EMAIL PROTECTED]> wrote:
> I have being looking at past examples of custom code used to test if a
> point is within a polygon. Many of these mention that the custom code
> is no longer needed due to the API implementing the click event for
> polygons.
>
> For the general purpose of "check if the user clicked in the polygon",
> this would appear to be true; however, I can't see a way to simply
> test an arbitrary point (e.g. a geocoded address) using the API.
>
> Would I be correct in assuming that custom code is still needed for
> this purpose?

You could use Mike Williams' epoly's .Contains method:
http://econym.org.uk/gmap/epoly.htm

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