', 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.13859,10.675837000000001], 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.1203993,10.727694499999984], 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)) } },
{latLng:[44.1553788,10.663047799999958], 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.063749,10.765340000000037], 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.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.23365009738436,10.657540932297707], 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)) } },
],
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 Porzione Bifamiliare Pianosinatico Tre Vani Mq 80
80 m² 320 m² 50 m² 159.000€
Pianosinatico
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
Affitto Appartamento Uccelliera Bar Alpino Mansarda Tre Vani
80 m² 25 m² 3.500€
Abetone Uccelliera Via Bar Alpino
Villetta TerraTetto La Lima Quattro Locali Mq 70 Resede
70 m² 20 m² 89.000€
Via Nazionale Modenese La Lima (PT) (già S.S. 12 Dell'Abetone e del Brennero)
Appartamento Abetone Uccelliera Bar Alpino Tre Vani Mq 65
65 m² 10 m² 149.000€
Abetone Via Bar Alpino
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');
});
}
});
});