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() {  
infowindow.close();
+
console.debug(infowindow);
infowindow = new google.maps.InfoWindow();
 
 
infowindow.setContent(document.getElementById(descId));
 
infowindow.setContent(document.getElementById(descId));
 
infowindow.open(map,marker);  
 
infowindow.open(map,marker);  

Revision as of 21:48, 28 October 2010