$(function () { console.log('it it'); var markers = []; var countryMarkers = []; var latlng = new google.maps.LatLng(20.0, -10.0); var myOptions = { zoom: 2, minZoom: 2, center: latlng, disableDefaultUI: true, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var myLatlng = new google.maps.LatLng(-34.59704151614413, -58.535158249999995); var marker = new google.maps.Marker({ position: myLatlng, map: map, draggable:false, animation: google.maps.Animation.DROP, title: "Argentina", visible: true, zIndex: Math.round(latlng.lat()*-100000)<<5, icon:"https://www.exp.it/wp-content/themes/umbriaexport/images/ico_country.png", type: "country" }); // === Store the category and name info as a marker properties === marker.mycategory = "country"; marker.myname = "Argentina"; markers.push(marker); google.maps.event.addListener(marker, 'click', function() { document.location.href = "https://www.exp.it/country/argentina/"; }); var myLatlng = new google.maps.LatLng(-16.34122561920748, -68.115234375); var marker = new google.maps.Marker({ position: myLatlng, map: map, draggable:false, animation: google.maps.Animation.DROP, title: "Bolivia", visible: true, zIndex: Math.round(latlng.lat()*-100000)<<5, icon:"https://www.exp.it/wp-content/themes/umbriaexport/images/ico_country.png", type: "country" }); // === Store the category and name info as a marker properties === marker.mycategory = "country"; marker.myname = "Bolivia"; markers.push(marker); google.maps.event.addListener(marker, 'click', function() { document.location.href = "https://www.exp.it/country/bolivia/"; }); var myLatlng = new google.maps.LatLng(4.850154078505659, -74.0478515625); var marker = new google.maps.Marker({ position: myLatlng, map: map, draggable:false, animation: google.maps.Animation.DROP, title: "Colombia", visible: true, zIndex: Math.round(latlng.lat()*-100000)<<5, icon:"https://www.exp.it/wp-content/themes/umbriaexport/images/ico_country.png", type: "country" }); // === Store the category and name info as a marker properties === marker.mycategory = "country"; marker.myname = "Colombia"; markers.push(marker); google.maps.event.addListener(marker, 'click', function() { document.location.href = "https://www.exp.it/country/colombia/"; }); var myLatlng = new google.maps.LatLng(5.397273407690917, -4.04296875); var marker = new google.maps.Marker({ position: myLatlng, map: map, draggable:false, animation: google.maps.Animation.DROP, title: "Costa D’Avorio", visible: true, zIndex: Math.round(latlng.lat()*-100000)<<5, icon:"https://www.exp.it/wp-content/themes/umbriaexport/images/ico_country.png", type: "country" }); // === Store the category and name info as a marker properties === marker.mycategory = "country"; marker.myname = "Costa D’Avorio"; markers.push(marker); google.maps.event.addListener(marker, 'click', function() { document.location.href = "https://www.exp.it/country/costa-davorio/"; }); var myLatlng = new google.maps.LatLng(42.68243539838623, 12.3046875); var marker = new google.maps.Marker({ position: myLatlng, map: map, draggable:false, animation: google.maps.Animation.DROP, title: "Italia", visible: true, zIndex: Math.round(latlng.lat()*-100000)<<5, icon:"https://www.exp.it/wp-content/themes/umbriaexport/images/ico_country.png", type: "country" }); // === Store the category and name info as a marker properties === marker.mycategory = "country"; marker.myname = "Italia"; markers.push(marker); google.maps.event.addListener(marker, 'click', function() { document.location.href = "https://www.exp.it/country/italia/"; }); var myLatlng = new google.maps.LatLng(-25.304303764403606, -57.5244140625); var marker = new google.maps.Marker({ position: myLatlng, map: map, draggable:false, animation: google.maps.Animation.DROP, title: "Paraguay", visible: true, zIndex: Math.round(latlng.lat()*-100000)<<5, icon:"https://www.exp.it/wp-content/themes/umbriaexport/images/ico_country.png", type: "country" }); // === Store the category and name info as a marker properties === marker.mycategory = "country"; marker.myname = "Paraguay"; markers.push(marker); google.maps.event.addListener(marker, 'click', function() { document.location.href = "https://www.exp.it/country/paraguay/"; }); var myLatlng = new google.maps.LatLng(50.00773901463677, 20.0390625); var marker = new google.maps.Marker({ position: myLatlng, map: map, draggable:false, animation: google.maps.Animation.DROP, title: "Polonia", visible: true, zIndex: Math.round(latlng.lat()*-100000)<<5, icon:"https://www.exp.it/wp-content/themes/umbriaexport/images/ico_country.png", type: "country" }); // === Store the category and name info as a marker properties === marker.mycategory = "country"; marker.myname = "Polonia"; markers.push(marker); google.maps.event.addListener(marker, 'click', function() { document.location.href = "https://www.exp.it/country/polonia/"; }); var myLatlng = new google.maps.LatLng(47.33882286211889, -104.15039100000001); var marker = new google.maps.Marker({ position: myLatlng, map: map, draggable:false, animation: google.maps.Animation.DROP, title: "Stati Uniti", visible: true, zIndex: Math.round(latlng.lat()*-100000)<<5, icon:"https://www.exp.it/wp-content/themes/umbriaexport/images/ico_country.png", type: "country" }); // === Store the category and name info as a marker properties === marker.mycategory = "country"; marker.myname = "Stati Uniti"; markers.push(marker); google.maps.event.addListener(marker, 'click', function() { document.location.href = "https://www.exp.it/country/stati-uniti/"; }); var myLatlng = new google.maps.LatLng(33.886917, 9.537499000000025); var marker = new google.maps.Marker({ position: myLatlng, map: map, draggable:false, animation: google.maps.Animation.DROP, title: "Tunisia", visible: true, zIndex: Math.round(latlng.lat()*-100000)<<5, icon:"https://www.exp.it/wp-content/themes/umbriaexport/images/ico_country.png", type: "country" }); // === Store the category and name info as a marker properties === marker.mycategory = "country"; marker.myname = "Tunisia"; markers.push(marker); google.maps.event.addListener(marker, 'click', function() { document.location.href = "https://www.exp.it/country/tunisia/"; }); var myLatlng = new google.maps.LatLng(37.98173723525492, 33.75); var marker = new google.maps.Marker({ position: myLatlng, map: map, draggable:false, animation: google.maps.Animation.DROP, title: "Turchia", visible: true, zIndex: Math.round(latlng.lat()*-100000)<<5, icon:"https://www.exp.it/wp-content/themes/umbriaexport/images/ico_country.png", type: "country" }); // === Store the category and name info as a marker properties === marker.mycategory = "country"; marker.myname = "Turchia"; markers.push(marker); google.maps.event.addListener(marker, 'click', function() { document.location.href = "https://www.exp.it/country/turchia/"; }); var myLatlng = new google.maps.LatLng(10.898042159726009, 106.63330078125); var marker = new google.maps.Marker({ position: myLatlng, map: map, draggable:false, animation: google.maps.Animation.DROP, title: "Vietnam", visible: true, zIndex: Math.round(latlng.lat()*-100000)<<5, icon:"https://www.exp.it/wp-content/themes/umbriaexport/images/ico_country.png", type: "country" }); // === Store the category and name info as a marker properties === marker.mycategory = "country"; marker.myname = "Vietnam"; markers.push(marker); google.maps.event.addListener(marker, 'click', function() { document.location.href = "https://www.exp.it/country/vietnam-2/"; }); });