i have this code to display a google map:
use this code i already tried it
google.maps.event.addListener(marker, 'click', function() { infoWindow.setContent(locations[i][0]); infoWindow.open(map, marker); });