When I use google.maps.event.trigger on a google.maps.Data.Layer that is listening for click events, the latLng object is getting passed to my listener instead of the actual click on the feature:
//feat is generic google.maps.Data object
feat.addListener('click', function (e) {
console.log(e);
});
// the event is the latLng object
// place is the same location as when I manually click on the map
google.maps.event.trigger(feat, 'click', {
latLng: place.geometry.location
});
>>> Object {latLng: L}
// when I actually click at the same position, the event is different
>>> NW {latLng: L, Gb: MouseEvent, pixel: undefined, Ja: undefined, feature: Ec}
How can I manually trigger a click event that has the same form as actually clicking on the map?