FstedPierThreeAmigosAerial
']];
for (var i = 0; i < locations.length; i++) {
var marker = new google.maps.Marker({
position: locations[i][0],
map: map,
title: locations[i][1],
});
// Register a click event listener on the marker to display the corresponding infowindow content
google.maps.event.addListener(marker, 'click', (function (marker, i) {
return function () {
infowindow.setContent(locations[i][2]);
infowindow.open(map, marker);
}
})(marker, i));
// Add marker to markers array
fstedpierthreeamigosMarkers.push(marker);}
// Trigger a click event on each marker when the corresponding marker link is clicked
$('.marker-link-fstedpierthreeamigos').on('click', function() {
google.maps.event.trigger(fstedpierthreeamigosMarkers[$(this).data('markerid')], 'click');});
}
//end initialize
google.maps.event.addDomListener(window, 'load', initialize);
});
//end map
/* ]]> */