title: Image on popup window in google maps v3 api?
body: <p>How I can put an image on a popup window when I click on a marker (bondi beach) in google maps v3 ? : </p>
  
  <p>Here the code :</p>
  
  <pre class="lang-js prettyprint-override"><code>var locations = [
  // Here I would put the Image ['Bondi Beach', -33.890542, 151.274856, 4],
  ];
  
  var map = new google.maps.Map(document.getElementById('map'), {
    zoom: 7,
    center: new google.maps.LatLng(46.713251, 7.833252),
    mapTypeId: google.maps.MapTypeId.ROADMAP,
  });
  
  map.setOptions({styles: styles});
  var infowindow = new google.maps.InfoWindow();
  var marker, i;
  
  for (i = 0; i &lt; locations.length; i++) {  
    marker = new google.maps.Marker({
       position: new google.maps.LatLng(locations[i][1], locations[i][2]),
       map: map
    });
    google.maps.event.addListener(marker, 'click', (function(marker, i) {
       return function() {
      infowindow.setContent(locations[i][0]);
      infowindow.open(map, marker);
       }
     })(marker, i));
  }
  </code></pre>