', options: { icon: new google.maps.MarkerImage("https://www.caseabetone.it/wp-content/themes/wpcasa-child/images/map-listing.png", new google.maps.Size(24, 37), new google.maps.Point(0, 0), new google.maps.Point(12, 37)), shadow: new google.maps.MarkerImage("https://www.caseabetone.it/wp-content/themes/wpcasa/lib/assets/img/map-listing-shadow.png", new google.maps.Size(24, 17), new google.maps.Point(0, 0), new google.maps.Point(12, 8)) } },
{latLng:[44.154796010025876,10.664299629579546], data: ' ', options: { icon: new google.maps.MarkerImage("https://www.caseabetone.it/wp-content/themes/wpcasa-child/images/map-listing.png", new google.maps.Size(24, 37), new google.maps.Point(0, 0), new google.maps.Point(12, 37)), shadow: new google.maps.MarkerImage("https://www.caseabetone.it/wp-content/themes/wpcasa/lib/assets/img/map-listing-shadow.png", new google.maps.Size(24, 17), new google.maps.Point(0, 0), new google.maps.Point(12, 8)) } },
{latLng:[44.131951,10.629423999999972], data: '', options: { icon: new google.maps.MarkerImage("https://www.caseabetone.it/wp-content/themes/wpcasa-child/images/map-listing.png", new google.maps.Size(24, 37), new google.maps.Point(0, 0), new google.maps.Point(12, 37)), shadow: new google.maps.MarkerImage("https://www.caseabetone.it/wp-content/themes/wpcasa/lib/assets/img/map-listing-shadow.png", new google.maps.Size(24, 17), new google.maps.Point(0, 0), new google.maps.Point(12, 8)) } },
{latLng:[44.13415882832138,10.630352050065994], data: '', options: { icon: new google.maps.MarkerImage("https://www.caseabetone.it/wp-content/themes/wpcasa-child/images/map-listing.png", new google.maps.Size(24, 37), new google.maps.Point(0, 0), new google.maps.Point(12, 37)), shadow: new google.maps.MarkerImage("https://www.caseabetone.it/wp-content/themes/wpcasa/lib/assets/img/map-listing-shadow.png", new google.maps.Size(24, 17), new google.maps.Point(0, 0), new google.maps.Point(12, 8)) } },
{latLng:[44.1614818958547,10.643202829885922], data: ' ', options: { icon: new google.maps.MarkerImage("https://www.caseabetone.it/wp-content/themes/wpcasa-child/images/map-listing.png", new google.maps.Size(24, 37), new google.maps.Point(0, 0), new google.maps.Point(12, 37)), shadow: new google.maps.MarkerImage("https://www.caseabetone.it/wp-content/themes/wpcasa/lib/assets/img/map-listing-shadow.png", new google.maps.Size(24, 17), new google.maps.Point(0, 0), new google.maps.Point(12, 8)) } },
{latLng:[44.1621515,10.644307900000058], data: ' ', options: { icon: new google.maps.MarkerImage("https://www.caseabetone.it/wp-content/themes/wpcasa-child/images/map-listing.png", new google.maps.Size(24, 37), new google.maps.Point(0, 0), new google.maps.Point(12, 37)), shadow: new google.maps.MarkerImage("https://www.caseabetone.it/wp-content/themes/wpcasa/lib/assets/img/map-listing-shadow.png", new google.maps.Size(24, 17), new google.maps.Point(0, 0), new google.maps.Point(12, 8)) } },
],
options:{
draggable: false
},
events:{
mouseover: function(marker, event, context){
marker.setZIndex(google.maps.Marker.MAX_ZINDEX + 1);
var map = $(this).gmap3("get"),
infowindow = $(this).gmap3({get:{name:"infowindow"}});
if (infowindow){
infowindow.open(map, marker);
infowindow.setContent(context.data);
} else {
$(this).gmap3({
infowindow:{
anchor:marker,
options:{content: context.data}
}
});
}
}
},
cluster:{
radius: 20,
5: { content: "
Appartamento Abetone Uccelliera Bar Alpino Tre Vani Mq 65
65 m² 10 m² 149.000€
Abetone Via Bar Alpino
Affitto Appartamento Faidello Parco Dei Daini Due Vani Mq 42
42 m² 5 m² 500€ / al Mese
Abetone Faidello Parco dei Daini
Affitto Appartamento Abetone Faidello Parco Daini Due Vani
42 m² 5 m² 450€ / al Mese
Abetone Faidello Parco dei Daini
CLUSTER_COUNT
", width: 50, height: 50, offset: { x: -25, y: -25 } },
10: { content: "CLUSTER_COUNT
", width: 60, height: 60, offset: { x: -30, y: -30 } },
25: { content: "CLUSTER_COUNT
", width: 70, height: 70, offset: { x: -35, y: -35 } },
50: { content: "CLUSTER_COUNT
", width: 80, height: 80, offset: { x: -40, y: -40 } },
events: {
click: function(cluster) {
var map = $(this).gmap3("get");
map.setCenter(cluster.main.getPosition());
map.setZoom(map.getZoom() + 1);
}
}
} // end cluster
}, // end marker
autofit:{}
});
}
})(jQuery);
jQuery(document).ready(function($){
var cookie_map = 'wpcasa_search_map';
var listings_map = '#listings-map';
if($.cookie(cookie_map) != 'closed') {
$(listings_map).initialize();
$('#listings-map.open').show();
}
if ($.cookie(cookie_map) && $.cookie(cookie_map) == 'open') {
$(listings_map).initialize();
$(listings_map).show();
$('.title-search-map').addClass('open');
}
$('.title-search-map').click(function () {
if ($(listings_map).is(':visible')) {
$.cookie(cookie_map, 'closed',{ expires: 60, path: '/' });
$(listings_map).animate(
{
opacity: '0'
},
150,
function(){
$('.title-search-map').removeClass('open');
$(listings_map).slideUp(150);
}
);
}
else {
$(listings_map).slideDown(150, function(){
$(listings_map).initialize();
$(listings_map).gmap3({trigger:"resize"});
$.cookie(cookie_map, 'open',{ expires: 60, path: '/' });
$(listings_map).animate(
{
opacity: '1'
},
150
);
$('.title-search-map').addClass('open');
});
}
});
});