On Aug 2, 11:21 pm, Rossko <[email protected]> wrote:
> > I would like to display the infoWindow for a kml polygon automatically
> > on loading the layer. To do this I am trying to trigger a click on
> > the polygon. In order to specify the location I pass the LatLng to
> > the trigger.
>
> I don't see anywhere in your code snippet that you trigger any event.
Sorry, not sure how that got left off. Here it is
var aLatLng = new google.maps.LatLng(51.5, 0.15);
var kmlFD = {
name: 'test name'
};
var kmlME = {
featureData: kmlFD,
latLNG: aLatLng
};
google.maps.event.trigger(ctaLayer ,'click',kmlME,aLatLng);
I have tried many combinations of parameters (more and less) but
basically, whatever I see in the listener is what I pass in the
trigger and that seems to defeat the purpose of the trigger. All I
want to do is simulate a mouse click at a specified point on the map
(kml layer) and let that initiate the display of an infowindow.
--
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.