title: Multiple "InfoWindow" for array of "markers" on Google Maps?
body: <p>Using Google Maps API to add an infoWindow to each marker. Markers come from an array.</p>
  
  <p>Although, infoWindow only shows up for the first marker, not the others. Why? Thanks.</p>
  
  <pre><code>function set_markers(array) {
      var mapOptions = {
          zoom: 13
      }
      for (var i = 0; i &lt; array.length; i++) {
          var single_location = array[i];
          var myLatLng = new google.maps.LatLng(single_location[1], single_location[2]);
          var marker = new google.maps.Marker({
              position: myLatLng,
              map: map,
              title: single_location[0]
          });
          var infowindow = new google.maps.InfoWindow({
              content: ""
          });
      }
  
      google.maps.event.addListener(marker, 'click', function() {
          infowindow.setContent('&lt;h3&gt;'+this.title+'&lt;/h3&gt;');
          infowindow.open(map,this);
      });
  }
  </code></pre>