title: Map not adding click event handlers to markers
body: <p>The code below will add markers to my map. But the add Listener event never gets added to each marker.</p>
  
  <pre><code>    var mapDiv = document.getElementById("google-map");
      var infowindow = new google.maps.InfoWindow({
          content: 'test'
      });
  
      var map = new google.maps.Map(mapDiv);
      map.setCenter(new GLatLng(53.635784, 6.943359));
      map.setZoom(5);
  
      for (var i = 0; i &lt; data.length; i++) {
          var dataMarker = data[i];
          var marker = new GLatLng(dataMarker.Latitude, dataMarker.Longitude);
          map.addOverlay(new google.maps.Marker(marker, {
              title: dataMarker.Name,
              html: dataMarker.HtmlAttributes[0]
          }));
          google.maps.event.addListener(marker, 'click', function () {                
              infoWindow.setContent(this.html);
              infoWindow.open(map, this);
          });            
      }
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Oh and I am using Maps v2.</p>