Can anyone help me code inside my eventListener so that an infowindow will do the following: open if it\'s currently closed, and close if it\'s currently open.
I\'ve
You can use something like this:
infoWindowClosed = true; google.maps.event.addListener(marker, 'click', function() { if (infoWindowClosed) { infowindow.open(map, marker); infoWindowClosed = false; } else { infowindow.close(map, marker) infoWindowClosed = true; } })