Check out the InfoWindow overlay: https://developers.google.com/maps/documentation/javascript/overlays#InfoWindows
Quite a lot does what you want, that is, displays a balloon with some content.
What you need to add to your code:
At the beginning of your script as a global variable:
var infowindow;
On the initialization of the api map:
function initialize() { infowindow = new google.maps.InfoWindow();
After creating the marker:
var marker = new google.maps.Marker({ map: map, position: results[0].geometry.location }); google.maps.event.addListener(marker, 'click', function() { infowindow.setContent("<p>Some HTML content</p>"); infowindow.open(map,marker); });
Hope this helps you
source share