'+
propertyThumbnail+
''+
propertyTitle+
propertyPrice+
'
'+
''+
'',
disableAutoPan: false,
pixelOffset: new window.google.maps.Size(-33, -90),
zIndex: null,
alignBottom: true,
closeBoxURL: "https://www.arutaimmobiliare.it/wp-content/themes/arutaimmobiliare/lib/images/close.png",
infoBoxClearance: new window.google.maps.Size(50, 50)
});
//alert("got latlng");
function getLatLng(callback) {
latLng = new window.google.maps.LatLng(36.70938718145729, 15.097062304693466);
callback(latLng);
}
getLatLng(function(latLng) {
marker.setPosition(latLng);
map.setCenter(latLng);
map.setZoom(14); infobox.open(map, marker);
map.panBy(0,-150);
google.maps.event.addListener(marker, 'click', function() {
infobox.open(map, marker);
});
});
// Maps Fully Loaded: Hide + Remove Spinner
google.maps.event.addListenerOnce(map, 'idle', function() {
jQuery('.spinner').fadeTo(800, 0.5);
setTimeout(function() {
jQuery('.spinner').remove();
}, 800);
});
}
google.maps.event.addDomListener(window, 'load', initMap);
google.maps.event.addDomListener(window, 'resize', initMap);