From GamingWiki
Jump to: navigation, search
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() {  
console.debug(infowindow);
+
infowindow.close();
 +
console.debug(descId,infowindow);
 
infowindow.setContent(document.getElementById(descId));
 
infowindow.setContent(document.getElementById(descId));
 
infowindow.open(map,marker);  
 
infowindow.open(map,marker);  

Revision as of 21:50, 28 October 2010