All Posts from This Month
",
width: 53,
height: 53
},
events: {
click: function(cluster) {
var map = jQuery(this).gmap3("get");
map.panTo(cluster.main.getPosition());
map.setZoom(map.getZoom() + 2);
}
}
},
options:{
draggable: false
},
events:{
click: function(marker, event, context){
var map = jQuery(this).gmap3("get");
/* Remove All previous infoboxes */
mapDiv.find('.infoBox').remove();
if(context.data != "disabled"){
var infoBoxOptions = {
content: context.data,
disableAutoPan: false,
pixelOffset: new google.maps.Size(-117, -130),
zIndex: 99,
boxStyle: {
background: "#FFFFFF",
opacity: 1,
width: "265px",
height: "80px"
},
closeBoxMargin: "2px 2px 2px 2px",
closeBoxURL: "http://blog.swiscoin.com/wp-content/themes/Multi-Author.Blog.WordPress.Theme.v1.34/design/img/infobox_close.png",
infoBoxClearance: new google.maps.Size(1, 1),
position: marker.position
};
var infoBox = new InfoBox(infoBoxOptions);
infoBox.open(map, marker);
}
map.panTo(marker.getPosition());
},
},
}
});
setTimeout(function(){
checkTouchDevice();
},1000);
jQuery("#elm-google-map-_e89f2046df0e97").parent().parent().addClass('load-finished');
var checkTouchDevice = function() {
if (Modernizr.touch){
map = mapDiv.gmap3("get");
map.setOptions({ draggable : false });
var draggableClass = 'inactive', draggableTitle = 'Activate map';
var draggableButton = jQuery('
'+draggableTitle+'
').appendTo(mapDiv);
draggableButton.click(function () {
if(jQuery(this).hasClass('active')){
jQuery(this).removeClass('active').addClass('inactive').text("Activate map");
map.setOptions({ draggable : false });
} else {
jQuery(this).removeClass('inactive').addClass('active').text("Deactivate map");
map.setOptions({ draggable : true });
}
});
}
}
});