Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// The function to trigger the marker click, 'id' is the reference index to the 'markers' array.
function markerClick(id){
google.maps.event.trigger(markers[id], 'click');
// this should be on the loop creating the markers
google.maps.event.addListener(marker, 'click', (function(marker, i) {
return function() {, marker);
})(marker, i));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.