From GamingWiki
Line 43: | Line 43: | ||
google.maps.event.addListener(marker, "click", function() { | google.maps.event.addListener(marker, "click", function() { | ||
infowindow.close(); | infowindow.close(); | ||
− | |||
infowindow.setContent(document.getElementById(descId)); | infowindow.setContent(document.getElementById(descId)); | ||
infowindow.open(map,marker); | infowindow.open(map,marker); | ||
+ | console.debug(descId,infowindow.content); | ||
}); | }); | ||
} | } |