From GamingWiki
Line 29: | Line 29: | ||
} | } | ||
geocoder = new google.maps.Geocoder(); | geocoder = new google.maps.Geocoder(); | ||
+ | infowindow = new google.maps.InfoWindow(); | ||
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); | map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); | ||
getMarkerList(); | getMarkerList(); | ||
Line 44: | Line 45: | ||
// }); | // }); | ||
google.maps.event.addListener(marker, "click", function() { | google.maps.event.addListener(marker, "click", function() { | ||
− | infowindow. | + | infowindow.setContent(description); |
infowindow.open(map,marker); | infowindow.open(map,marker); | ||
}); | }); |