I am busy with a script that will make a google maps canvas on my website, with multiple markers. I want that when you click on a marker, a infowindow opens. I have done tha
Declare global variables:
var mapOptions; var map; var infowindow; var marker; var contentString; var image;
In intialize use the map's addEvent method:
intialize
addEvent
google.maps.event.addListener(map, 'click', function() { if (infowindow) { infowindow.close(); } });