I briefly tried out the method here http://groups.google.com/group/Google-Maps-API/browse_thread/thread/a62441df10f47d87/238c844a4d145b8a?lnk=gst&q=gevent+trigger+map+click+glatlng#238c844a4d145b8a
that says that one should be able to trigger a click event on the map by doing GEvent.trigger(map,'click',null,new GLatLng(38.9216,-76.9053)); and while i can verify that this does indeed trigger a map "click" event, it doesn't seem to trigger it at the location specified, it just passes the latlng to the listener function (which is actually what the docs say it should do). So the question remains, is there a way to trigger a map click event, as if a user were actually clicking the map at a specific x,y so that the listener for the map would actually be able to get the overlay clicked at that point- On Oct 20, 2:05 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
