When you click on a marker
created with the Google Maps API, you can add an info window, which is what the code below does:
google.maps.event.addListener(marker, 'click', (function(marker, i) {
return function() {
infowindow.setContent("image.png");
infowindow.open(map, marker);
}
})(marker, i));
How it is played:
However, I would like instead of displaying the text of the image in the balloon, image.png
, I would like to see the image in fact. How do I display an image in the marker information window?