title: Google maps infowindow showing on wrong marker
body: <p>I have a piece of javascript code where I create markers and attach InfoWindows to them, like this:</p>
  
  <pre><code>for (var i = 0; i &lt; 8; i++) {
      var marker = new google.maps.Marker({
         map: map,
         position: new google.maps.LatLng(lat[i], lng[i]),
         icon: '/static/images/iconsets/gmap/iconb' + (i+1) + '.png',
      });
      var infowindow = new google.maps.InfoWindow({
          content: 'test string'
      });
      google.maps.event.addListener(marker, 'click', function() {
          infowindow.open(map,marker);
      });
  }
  </code></pre>
  
  <p>But when I click one of the markers, the infowindow always shows only on one marker. What am I doing wrong?</p>