I have a collection of points where I can see all of them on the map! I would like to add an infowindow "balloon" to each of them by entering the full address of each coordinate.
function initialize() {
var latlng = new google.maps.LatLng(latitudes, longitudes);
var options = {
zoom: 12,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById("mapa"), options);
geocoder = new google.maps.Geocoder();
var pontos = [];
if (coord.length > 1) {
var adress = [];
for (var i = 0; i < coord.length; i++) {
var location = coord[i].split(",");
var marker = new google.maps.Marker({
position: new google.maps.LatLng(location[0], location[1]),
map: map,
})
}
}
}
initialize();