in js/custom.js [1074:1105]
(function(info, addr) {
geocoder.geocode( {
'address': latLng
}, function(results, status) {
myLatlng = results[0].geometry.location;
marker = new google.maps.Marker({
position: myLatlng,
icon:image,
title: overlayTitle,
map: map
});
var $content = '<div class="infoWindow">'+info+'<br>'+addr+'</div>';
google.maps.event.addListener(marker, 'click', (function(marker, i) {
return function() {
infowindow.setContent($content);
infowindow.open(map, this);
}
})(this, i));
if(locations.length > 1){
bounds.extend(myLatlng);
map.fitBounds(bounds);
}else{
map.setCenter(myLatlng);
}
});
})(info, addr);