', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/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.atlasimmobilier.com/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)) } },
{address: "Essaouira,Maroc", data: '', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/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.atlasimmobilier.com/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)) } },
{address: "Essaouira, Maroc", data: '', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/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.atlasimmobilier.com/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)) } },
{address: "Essaouira, MAROC", data: '', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/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.atlasimmobilier.com/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)) } },
{address: "bab sbaa", data: '', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/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.atlasimmobilier.com/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)) } },
{address: "Essaouira, Maroc", data: '', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/images/map-listing.png", new google.maps.Size(24, 37), new google.maps.Point(0, 0), new google.maps.Point(27, 37)), shadow: new google.maps.MarkerImage("https://www.atlasimmobilier.com/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)) } },
{address: "Essaouira, Maroc", data: '', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/images/map-listing.png", new google.maps.Size(24, 37), new google.maps.Point(0, 0), new google.maps.Point(42, 37)), shadow: new google.maps.MarkerImage("https://www.atlasimmobilier.com/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)) } },
{address: "Ghazoua, Essaouira, Maroc", data: ' ', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/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.atlasimmobilier.com/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)) } },
{address: "Essaouira, Maroc", data: '', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/images/map-listing.png", new google.maps.Size(24, 37), new google.maps.Point(0, 0), new google.maps.Point(57, 37)), shadow: new google.maps.MarkerImage("https://www.atlasimmobilier.com/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)) } },
{address: "Essaouira, Maroc", data: ' ', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/images/map-listing.png", new google.maps.Size(24, 37), new google.maps.Point(0, 0), new google.maps.Point(72, 37)), shadow: new google.maps.MarkerImage("https://www.atlasimmobilier.com/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)) } },
{address: "Ghazoua, Essaouira, MAROC", data: '', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/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.atlasimmobilier.com/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)) } },
{address: "Essaouira, MAROC", data: '', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/images/map-listing.png", new google.maps.Size(24, 37), new google.maps.Point(0, 0), new google.maps.Point(27, 37)), shadow: new google.maps.MarkerImage("https://www.atlasimmobilier.com/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)) } },
{address: "Essaouira, Maroc", data: '', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/images/map-listing.png", new google.maps.Size(24, 37), new google.maps.Point(0, 0), new google.maps.Point(87, 37)), shadow: new google.maps.MarkerImage("https://www.atlasimmobilier.com/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)) } },
{address: "Hivernage ", data: '', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/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.atlasimmobilier.com/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)) } },
{address: "Gueliz ", data: '', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/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.atlasimmobilier.com/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)) } },
{address: "Essaouira, Maroc", data: ' ', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/images/map-listing.png", new google.maps.Size(24, 37), new google.maps.Point(0, 0), new google.maps.Point(102, 37)), shadow: new google.maps.MarkerImage("https://www.atlasimmobilier.com/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)) } },
{address: "Essaouira, Maroc", data: '', options: { icon: new google.maps.MarkerImage("https://www.atlasimmobilier.com/wp-content/themes/bayfront/images/map-listing.png", new google.maps.Size(24, 37), new google.maps.Point(0, 0), new google.maps.Point(117, 37)), shadow: new google.maps.MarkerImage("https://www.atlasimmobilier.com/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: "
Location longue durée : Appartement sans vis-à-vis à toute proximité d’Essaouira
1 1 62 m² 380€ / par Mois
Essaouira : Appartement à louer, spacieux avec patio et jardinet, quartier résidentiel
2 1 75 m² 500€ / par Mois
A louer en longue durée à Essaouira : Appartement trois chambres exposition plein sud
3 2 100 m² 550€ / par Mois
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');
});
}
});
});
-->