I am making a website over cyclists killed in Norway. For my project I have been using google maps api v3, but I have vague familiarity with javascript. You can see my resul
In addition to HoangHieu Answer when you use for loop it better to use it this way:
marker.info = new google.maps.InfoWindow({ content: 'some text' }); google.maps.event.addListener(marker, 'click', function() { this.info.open(map, this); });