Το έθιμο των καβαλάρηδων στη Σιάτιστα Κοζάνης
', infobox_type, 'no');
}
}, 1000);
},
idle: function(){
setTimeout(function(){
if(json_markers_data.length > 0 && show_infobox == 'true' && !cspm_is_panorama_active(plugin_map)){
cspm_draw_multiple_infoboxes(plugin_map, map_id, '
', infobox_type, 'no');
}
}, 1000);
},
bounds_changed: function(){
if(json_markers_data.length > 0 && show_infobox == 'true'){
cspm_draw_multiple_infoboxes(plugin_map, map_id, '
', infobox_type, 'no');
}
},
drag: function(){
if(json_markers_data.length > 0 && show_infobox == 'true'){
cspm_draw_multiple_infoboxes(plugin_map, map_id, '
', infobox_type, 'no');
}
}
}
},
styledmaptype:{
id: "custom_style",
options:{
name: "Hopper",
alt: "Show Hopper"
},
styles: [{"featureType":"water","elementType":"geometry","stylers":[{"hue":"#165c64"},{"saturation":34},{"lightness":-69},{"visibility":"on"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"hue":"#b7caaa"},{"saturation":-14},{"lightness":-18},{"visibility":"on"}]},{"featureType":"landscape.man_made","elementType":"all","stylers":[{"hue":"#cbdac1"},{"saturation":-6},{"lightness":-9},{"visibility":"on"}]},{"featureType":"road","elementType":"geometry","stylers":[{"hue":"#8d9b83"},{"saturation":-89},{"lightness":-12},{"visibility":"on"}]},{"featureType":"road.highway","elementType":"geometry","stylers":[{"hue":"#d4dad0"},{"saturation":-88},{"lightness":54},{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"hue":"#bdc5b6"},{"saturation":-89},{"lightness":-3},{"visibility":"simplified"}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"hue":"#bdc5b6"},{"saturation":-89},{"lightness":-26},{"visibility":"on"}]},{"featureType":"poi","elementType":"geometry","stylers":[{"hue":"#c17118"},{"saturation":61},{"lightness":-45},{"visibility":"on"}]},{"featureType":"poi.park","elementType":"all","stylers":[{"hue":"#8ba975"},{"saturation":-46},{"lightness":-28},{"visibility":"on"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"hue":"#a43218"},{"saturation":74},{"lightness":-51},{"visibility":"simplified"}]},{"featureType":"administrative.province","elementType":"all","stylers":[{"hue":"#ffffff"},{"saturation":0},{"lightness":100},{"visibility":"simplified"}]},{"featureType":"administrative.neighborhood","elementType":"all","stylers":[{"hue":"#ffffff"},{"saturation":0},{"lightness":100},{"visibility":"off"}]},{"featureType":"administrative.locality","elementType":"labels","stylers":[{"hue":"#ffffff"},{"saturation":0},{"lightness":100},{"visibility":"off"}]},{"featureType":"administrative.land_parcel","elementType":"all","stylers":[{"hue":"#ffffff"},{"saturation":0},{"lightness":100},{"visibility":"off"}]},{"featureType":"administrative","elementType":"all","stylers":[{"hue":"#3a3935"},{"saturation":5},{"lightness":-57},{"visibility":"off"}]},{"featureType":"poi.medical","elementType":"geometry","stylers":[{"hue":"#cba923"},{"saturation":50},{"lightness":-46},{"visibility":"on"}]}] }
});
/**
* Call zoom-in function */
cspm_zoom_in('6217', $('div.codespacing_light_map_zoom_in_6217'), plugin_map);
/**
* Call zoom-out function */
cspm_zoom_out('6217', $('div.codespacing_light_map_zoom_out_6217'), plugin_map);
/**
* Hide/Show UI Controls depending on the streetview visibility */
var mapObject = plugin_map.gmap3('get');
if(typeof mapObject.getStreetView === 'function'){
var streetView = mapObject.getStreetView();
google.maps.event.addListener(streetView, "visible_changed", function(){
if(this.getVisible()){
/**
* Hide the Zoom control before the map load */
$('div.codespacing_light_map_zoom_in_6217, div.codespacing_light_map_zoom_out_6217').hide();
$('div.cspm_infobox_container[data-map-id='+map_id+']').hide();
}else{
/**
* Show the Zoom cotrol after the map load */
$('div.codespacing_light_map_zoom_in_6217, div.codespacing_light_map_zoom_out_6217').show();
if(json_markers_data.length > 0 && show_infobox == 'true'){
setTimeout(function(){
cspm_draw_multiple_infoboxes(plugin_map, map_id, '
', infobox_type, 'no');
}, 200);
}
}
});
}
/**
* Store the window width */
var windowWidth = $(window).width();
$(window).resize(function(){
/**
* Check window width has actually changed and it's not just iOS triggering a resize event on scroll */
if ($(window).width() != windowWidth) {
/**
* Update the window width for next time */
windowWidth = $(window).width();
setTimeout(function(){
var latLng = new google.maps.LatLng (40.22240284242777, 21.553802490234375);
var map = plugin_map.gmap3("get");
if(typeof map.panTo === 'function')
map.panTo(latLng);
if(typeof map.setCenter === 'function')
map.setCenter(latLng);
}, 500);
}
});
$(plugin_map_placeholder+':visible').livequery(function(){
if(_CSPM_MAP_RESIZED[map_id]