for (let i = 0; i < locations.length; i++) {
let marker = new google.maps.Marker({
position: locations[i].position,
map: map,
});
let infowindow = new google.maps.InfoWindow({
content: locations[i].popupContent
});
marker.addListener('click', function () {
infowindow.open(map, marker);
});
}