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

Revision as of 21:54, 28 October 2010