title: How to display content in an infowindow specific to a marker?
body: <p>I created a google maps (api v3) with the number of markers depending on the search results. When I click a marker, it opens an infowindow. What's the best way to have that infowindow show information associated to its marker? The information related to all the markers is in a json object I receive from an ajax request.</p>
  
  <pre><code>for (i=0; i &lt; result.point.length; i++) {
                      var latLng = new google.maps.LatLng(result.proint[i].Latitude,result.point[i].Longitude);                                    
                      var marker = new google.maps.Marker({
                          position: latLng,
                          title: i.toString()
                          //map: map
                      });
                      markersArray.push(marker);
  
                      var infowindow = new google.maps.InfoWindow({
                          content: 'specific information associated to the marker clicked'
                      });
  
                      google.maps.event.addListener(markersArray[i], 'click', function(event) {
                          infowindow.open(map, this);
                      });
  </code></pre>