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).innerHTML); |
infowindow.open(map,marker); | infowindow.open(map,marker); | ||
console.debug(descId,infowindow.content); | console.debug(descId,infowindow.content); |