I guess in my naive logic, if I use the mouse to click on the kml layer (at the specific location I require) it knows which polygon is underneath the click, and pops up the infowindow containing the name and description from that polygon's kml entry. Therefore, if I merely trigger a click at a specific point (rather than with a mouse) I would expect it to respond in a similar manner.
If all it does is display the info that you pass to it and as you point out, kml polygons are not individually referable so that info about the polygon is not known, then being able to trigger a click on a kml layer seems to have no useable function. But as you say, I may be on completely the wrong track ! Thanks On Aug 3, 10:38 am, Rossko <ros...@culzean.clara.co.uk> wrote: > > If I add a 3rd parameter > > google.maps.event.trigger(ctaLayer ,'click',null); > > then obj is null ie the listener only receives what is sent by the > > trigger. > > > This does not appear to be the correct behaviour. > > I'm not sure why you think that is incorrect. What would you expect > it to send, instead? How would the trigger guess that was what you > had in mind, rather than the day of the week or the word "boo"? > http://code.google.com/apis/maps/documentation/javascript/reference.h... > google.maps.event.trigger( AnyObjectYouLike, > 'AnyEventNameYouLike', > AnyArgumentYouLike) ; > > I do think you are on the wrong track here altogether; the polygon > object within the KmlLayer is not accessible individually, so I do not > think you can successfully simulate a click on it. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.