> 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.html#event
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 [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-js-api-v3?hl=en.

Reply via email to