From GamingWiki
Line 42: | Line 42: | ||
var marker = new google.maps.Marker({position:latlng, map: map, title:title}); | var marker = new google.maps.Marker({position:latlng, map: map, title:title}); | ||
google.maps.event.addListener(marker, "click", function() { | google.maps.event.addListener(marker, "click", function() { | ||
− | |||
infowindow.setContent(document.getElementById(descId).innerHTML); | infowindow.setContent(document.getElementById(descId).innerHTML); | ||
infowindow.open(map,marker); | infowindow.open(map,marker); | ||
− | |||
}); | }); | ||
} | } |