function GMap() {
var latlng=[
{"id":"308","act":"n","title":"Observation tower on Suur Muna...","lat":"57.7139590","lng":"27.0601600","url":"https://www.allplacestovisit.com/estonia/observation-tower-on-suur-munamgi/","img":"https://www.allplacestovisit.com/upl/places/2019/observation-tower-on-suur-munamgi.jpg"},
{"id":"309","act":"n","title":"Hinni Canyon","lat":"57.7652100","lng":"26.8791500","url":"https://www.allplacestovisit.com/estonia/hinni-canyon/","img":"https://www.allplacestovisit.com/upl/places/2019/hinni-canyon.jpg"},
{"id":"322","act":"y","title":"Alatskivi Castle","lat":"58.6037640","lng":"27.1293740","url":"https://www.allplacestovisit.com/estonia/alatskivi-castle/","img":"https://www.allplacestovisit.com/upl/places/2019/alatskivi-castle.jpg"},
{"id":"323","act":"n","title":"Pühtitsa Monastery","lat":"59.1990750","lng":"27.5354160","url":"https://www.allplacestovisit.com/estonia/phtitsa-monastery/","img":"https://www.allplacestovisit.com/upl/places/2019/phtitsa-monastery.jpg"},
{"id":"324","act":"n","title":"Narva castle","lat":"59.3754090","lng":"28.2010920","url":"https://www.allplacestovisit.com/estonia/narva-castle/","img":"https://www.allplacestovisit.com/upl/places/2019/narva-castle.jpg"},
{"id":"325","act":"n","title":"Narva Town Hall","lat":"59.3793790","lng":"28.1987250","url":"https://www.allplacestovisit.com/estonia/narva-city-hall/","img":"https://www.allplacestovisit.com/upl/places/2019/narva-city-hall325.jpg"},
{"id":"326","act":"n","title":"Narva Joesuu","lat":"59.4434730","lng":"28.0106650","url":"https://www.allplacestovisit.com/estonia/narva-joesuu/","img":"https://www.allplacestovisit.com/upl/places/2019/narva-joesuu.jpg"},
{"id":"327","act":"n","title":"Narva River Promenade","lat":"59.3775440","lng":"28.2032210","url":"https://www.allplacestovisit.com/estonia/narva-river-promenade/","img":"https://www.allplacestovisit.com/upl/places/2019/narva-river-promenade.jpg"},
{"id":"328","act":"n","title":"Monument to Paul Keres","lat":"59.3756150","lng":"28.1942970","url":"https://www.allplacestovisit.com/estonia/monument-to-paul-keres/","img":"https://www.allplacestovisit.com/upl/places/2019/monument-to-paul-keres.jpg"},
{"id":"329","act":"n","title":"Kreenholm Area and Kreenholm T...","lat":"59.3606990","lng":"28.1938010","url":"https://www.allplacestovisit.com/estonia/kreenholm-area-and-kreenholm-textile-factory/","img":"https://www.allplacestovisit.com/upl/places/2019/kreenholm-area-and-kreenholm-textile-factory.jpg"},
{"id":"330","act":"n","title":"Narva Alexander's Cathedr...","lat":"59.3707740","lng":"28.2017430","url":"https://www.allplacestovisit.com/estonia/narva-alexanders-cathedral/","img":"https://www.allplacestovisit.com/upl/places/2019/narva-alexanders-cathedral.jpg"},
{"id":"331","act":"n","title":"The Lord's Resurrection C...","lat":"59.3710860","lng":"28.1937030","url":"https://www.allplacestovisit.com/estonia/the-lords-resurrection-cathedral/","img":"https://www.allplacestovisit.com/upl/places/2019/the-lords-resurrection-cathedral.jpg"},
{"id":"332","act":"n","title":"Swedish Lion","lat":"59.3730570","lng":"28.2005560","url":"https://www.allplacestovisit.com/estonia/swedish-lion/","img":"https://www.allplacestovisit.com/upl/places/2019/swedish-lion.jpg"},
{"id":"333","act":"n","title":"Narva Cascades","lat":"59.3555840","lng":"28.1925210","url":"https://www.allplacestovisit.com/estonia/narva-cascades/","img":"https://www.allplacestovisit.com/upl/places/2019/narva-cascades.jpg"},
{"id":"334","act":"n","title":"Wedding Tree","lat":"59.3758600","lng":"28.2009500","url":"https://www.allplacestovisit.com/estonia/wedding-tree/","img":"https://www.allplacestovisit.com/upl/places/2019/wedding-tree334.jpg"},
{"id":"335","act":"n","title":"Memento Mori Memorial","lat":"59.3690520","lng":"28.1999450","url":"https://www.allplacestovisit.com/estonia/memento-mori-memorial/","img":"https://www.allplacestovisit.com/upl/places/2019/memento-mori-memorial.jpg"},
{"id":"336","act":"n","title":"Valaste Waterfall","lat":"59.4439220","lng":"27.3355040","url":"https://www.allplacestovisit.com/estonia/valaste-waterfall/","img":"https://www.allplacestovisit.com/upl/places/2019/valaste-waterfall.jpg"},
{"id":"337","act":"n","title":"Kohtla-Nõmme Mining Museum","lat":"59.3500250","lng":"27.1740360","url":"https://www.allplacestovisit.com/estonia/kohtla-nmme-mining-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/kohtla-nmme-mining-museum.jpg"},
{"id":"338","act":"n","title":"Rakvere Castle","lat":"59.3478560","lng":"26.3518530","url":"https://www.allplacestovisit.com/estonia/rakvere-castle/","img":"https://www.allplacestovisit.com/upl/places/2019/rakvere-castle.jpg"},
{"id":"339","act":"n","title":"OKASKROON Monument","lat":"59.3491760","lng":"26.3505920","url":"https://www.allplacestovisit.com/estonia/okaskroon-monument/","img":"https://www.allplacestovisit.com/upl/places/2019/okaskroon-monument.jpg"},
{"id":"341","act":"n","title":"Jägala Waterfall","lat":"59.4495490","lng":"25.1784980","url":"https://www.allplacestovisit.com/estonia/jgala-waterfall/","img":"https://www.allplacestovisit.com/upl/places/2019/jgala-waterfall.jpg"},
{"id":"342","act":"n","title":"Muhu St. Catherine's Chur...","lat":"58.6040020","lng":"23.2260870","url":"https://www.allplacestovisit.com/estonia/muhu-st.-catherines-church/","img":"https://www.allplacestovisit.com/upl/places/2019/muhu-st.-catherines-church.jpg"},
{"id":"343","act":"n","title":"Valjala Hill Fort","lat":"58.4003000","lng":"22.7953380","url":"https://www.allplacestovisit.com/estonia/valjala-hill-fort/","img":"https://www.allplacestovisit.com/upl/places/2019/valjala-hill-fort.jpg"},
{"id":"344","act":"n","title":"Kaali Crater","lat":"58.3730160","lng":"22.6705220","url":"https://www.allplacestovisit.com/estonia/kaali-crater/","img":"https://www.allplacestovisit.com/upl/places/2019/kaali-crater.jpg"},
{"id":"345","act":"n","title":"Sõrve Lighthouse","lat":"57.9098160","lng":"22.0553500","url":"https://www.allplacestovisit.com/estonia/srve-lighthouse/","img":"https://www.allplacestovisit.com/upl/places/2019/srve-lighthouse345.jpg"},
{"id":"346","act":"n","title":"Panga Cliff","lat":"58.5707520","lng":"22.2888140","url":"https://www.allplacestovisit.com/estonia/panga-cliff/","img":"https://www.allplacestovisit.com/upl/places/2019/panga-cliff.jpg"},
{"id":"347","act":"n","title":"Angla Windmill Park","lat":"58.5271440","lng":"22.7002200","url":"https://www.allplacestovisit.com/estonia/angla-windmill-park/","img":"https://www.allplacestovisit.com/upl/places/2019/angla-windmill-park.jpg"},
{"id":"348","act":"n","title":"Üügu Cliff","lat":"58.6714890","lng":"23.2391830","url":"https://www.allplacestovisit.com/estonia/gu-cliff/","img":"https://www.allplacestovisit.com/upl/places/2019/gu-cliff.jpg"},
{"id":"349","act":"n","title":"Muhu Museum","lat":"58.5966810","lng":"23.0826900","url":"https://www.allplacestovisit.com/estonia/muhu-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/muhu-museum.jpg"},
{"id":"350","act":"n","title":"Kuressaare Castle","lat":"58.2475970","lng":"22.4796280","url":"https://www.allplacestovisit.com/estonia/kuressaare-castle/","img":"https://www.allplacestovisit.com/upl/places/2019/kuressaare-castle.jpg"},
{"id":"351","act":"n","title":"Tori Hell cave","lat":"58.4829840","lng":"24.8168470","url":"https://www.allplacestovisit.com/estonia/tori-hell-cave/","img":"https://www.allplacestovisit.com/upl/places/2019/tori-hell-cave.jpg"},
{"id":"352","act":"n","title":"Riisa Swamp Study Trail","lat":"58.4885440","lng":"24.9817080","url":"https://www.allplacestovisit.com/estonia/riisa-swamp-study-trail/","img":"https://www.allplacestovisit.com/upl/places/2019/riisa-swamp-study-trail.jpg"},
{"id":"353","act":"n","title":"Tori St George’s Lutheran Ch...","lat":"58.4829340","lng":"24.8141510","url":"https://www.allplacestovisit.com/estonia/tori-st-georges-lutheran-church/","img":"https://www.allplacestovisit.com/upl/places/2019/tori-st-georges-lutheran-church.jpg"},
{"id":"360","act":"n","title":"Monument Russalka","lat":"59.4434180","lng":"24.7938930","url":"https://www.allplacestovisit.com/estonia/monument-russalka/","img":"https://www.allplacestovisit.com/upl/places/2019/monument-russalka.jpg"},
{"id":"362","act":"n","title":"Pirita Promenade","lat":"59.4438140","lng":"24.7938460","url":"https://www.allplacestovisit.com/estonia/pirita-promenade/","img":"https://www.allplacestovisit.com/upl/places/2019/pirita-promenade.jpg"},
{"id":"367","act":"n","title":"Nõmme – The village within ...","lat":"59.3771640","lng":"24.6829710","url":"https://www.allplacestovisit.com/estonia/nmme-the-village-within-the-city/","img":"https://www.allplacestovisit.com/upl/places/2019/nmme-the-village-within-the-city.jpg"},
{"id":"368","act":"n","title":"Glehn's Castle","lat":"59.3878580","lng":"24.6539410","url":"https://www.allplacestovisit.com/estonia/glehns-castle/","img":"https://www.allplacestovisit.com/upl/places/2019/glehns-castle.jpg"},
{"id":"340","act":"n","title":"„Lennusadam“ Museum","lat":"59.4514110","lng":"24.7384100","url":"https://www.allplacestovisit.com/estonia/tallinn/lennusadam-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/lennusadam-museum.jpg"},
{"id":"358","act":"n","title":"Tallinn Old Town ","lat":"59.4375530","lng":"24.7439380","url":"https://www.allplacestovisit.com/estonia/tallinn/tallinn-old-town-/","img":"https://www.allplacestovisit.com/upl/places/2019/tallinn-old-town-358.jpg"},
{"id":"359","act":"n","title":"Kadriorg – Elegant park & fi...","lat":"59.4377790","lng":"24.7902760","url":"https://www.allplacestovisit.com/estonia/tallinn/kadriorg-elegant-park-fine-art/","img":"https://www.allplacestovisit.com/upl/places/2019/kadriorg-elegant-park-fine-art.jpg"},
{"id":"361","act":"n","title":"Tallinna lauluväljak (Song Fe...","lat":"59.4446430","lng":"24.8065320","url":"https://www.allplacestovisit.com/estonia/tallinn/tallinna-lauluvljak-song-festival-grounds/","img":"https://www.allplacestovisit.com/upl/places/2019/tallinna-lauluvljak-song-festival-grounds.jpg"},
{"id":"363","act":"n","title":"Kumu Art Museum","lat":"59.4362320","lng":"24.7960060","url":"https://www.allplacestovisit.com/estonia/tallinn/kumu-art-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/kumu-art-museum.jpg"},
{"id":"366","act":"n","title":"Kadriorg Palace","lat":"59.4384670","lng":"24.7909040","url":"https://www.allplacestovisit.com/estonia/tallinn/kadriorg-palace/","img":"https://www.allplacestovisit.com/upl/places/2019/kadriorg-palace.jpg"},
{"id":"310","act":"n","title":"Sculpture of Kissing Students","lat":"58.3801150","lng":"26.7222540","url":"https://www.allplacestovisit.com/estonia/tartu/sculpture-of-kissing-students/","img":"https://www.allplacestovisit.com/upl/places/2019/sculpture-of-kissing-students.jpg"},
{"id":"311","act":"n","title":"Botanical Garden","lat":"58.3848750","lng":"26.7209620","url":"https://www.allplacestovisit.com/estonia/tartu/botanical-garden/","img":"https://www.allplacestovisit.com/upl/places/2019/botanical-garden.jpg"},
{"id":"312","act":"n","title":"Kaarsild","lat":"58.3807930","lng":"26.7258810","url":"https://www.allplacestovisit.com/estonia/tartu/kaarsild/","img":"https://www.allplacestovisit.com/upl/places/2019/kaarsild.jpg"},
{"id":"313","act":"n","title":"Toy Museum","lat":"58.3822020","lng":"26.7181000","url":"https://www.allplacestovisit.com/estonia/tartu/toy-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/toy-museum.jpg"},
{"id":"314","act":"n","title":"Pirogov Park","lat":"58.3798360","lng":"26.7205460","url":"https://www.allplacestovisit.com/estonia/tartu/pirogov-park/","img":"https://www.allplacestovisit.com/upl/places/2019/pirogov-park.jpg"},
{"id":"315","act":"n","title":"Dome Church's Ruins","lat":"58.3802850","lng":"26.7143840","url":"https://www.allplacestovisit.com/estonia/tartu/dome-churchs-ruins/","img":"https://www.allplacestovisit.com/upl/places/2019/dome-churchs-ruins.jpg"},
{"id":"316","act":"n","title":"Sculpture - Wilde & Vilde","lat":"58.3781960","lng":"26.7229710","url":"https://www.allplacestovisit.com/estonia/tartu/sculpture-wilde-vilde/","img":"https://www.allplacestovisit.com/upl/places/2019/sculpture-wilde-vilde316.jpg"},
{"id":"317","act":"n","title":"Teather Vanemuine","lat":"58.3763430","lng":"26.7240300","url":"https://www.allplacestovisit.com/estonia/tartu/teather-vanemuine/","img":"https://www.allplacestovisit.com/upl/places/2019/teather-vanemuine.jpg"},
{"id":"318","act":"n","title":"The Museum Dungeons of the KGB","lat":"58.3732530","lng":"26.7199720","url":"https://www.allplacestovisit.com/estonia/tartu/the-museum-dungeons-of-the-kgb/","img":"https://www.allplacestovisit.com/upl/places/2019/the-museum-dungeons-of-the-kgb.jpg"},
{"id":"319","act":"n","title":"The banks of Emajõgi","lat":"58.3873020","lng":"26.7191870","url":"https://www.allplacestovisit.com/estonia/tartu/the-banks-of-emajgi/","img":"https://www.allplacestovisit.com/upl/places/2019/the-banks-of-emajgi.jpg"},
{"id":"320","act":"n","title":"Tartu Art Museum","lat":"58.3807740","lng":"26.7241750","url":"https://www.allplacestovisit.com/estonia/tartu/tartu-art-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/tartu-art-museum.jpg"},
{"id":"321","act":"n","title":"Science Centre AHHA","lat":"58.3765490","lng":"26.7346060","url":"https://www.allplacestovisit.com/estonia/tartu/science-centre-ahha/","img":"https://www.allplacestovisit.com/upl/places/2019/science-centre-ahha.jpg"},
{"id":"557","act":"n","title":"Pärnu Beach","lat":"58.3726851","lng":"24.5024704","url":"https://www.allplacestovisit.com/estonia/parnu/prnu-beach/","img":"https://www.allplacestovisit.com/upl/places/2021/prnu-beach.jpg"},
];
var iw=null;
$(function() {
var map_center=new google.maps.LatLng(58.6281040,25.7311800);
var icon={url:('img/i_pin.svg'),size:new google.maps.Size(36,36),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(18,36),scaledSize:new google.maps.Size(36,36)};
var icon_act={url:('img/i_pin_act.svg'),size:new google.maps.Size(44,44),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(22,44),scaledSize:new google.maps.Size(44,44)};
var mapOptions={center:map_center,zoom:7,maxZoom:17,streetViewControl:false,panControl:false,mapTypeId:'roadmap',mapTypeControl:true,scaleControl:false,streetViewControl:false,rotateControl:false,fullscreenControl:false,zoomControl:true,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL}};
var map=new google.maps.Map(document.getElementById('map'), mapOptions);
var iw=new google.maps.InfoWindow({content:''});
$.each(latlng, function(i, m) {
if(m.act=='y'){var marker=new google.maps.Marker({position: new google.maps.LatLng(m.lat, m.lng),bounds:true,id:'o'+m.id,letter:m.index,map:map,icon:icon_act,title:m.title});}
else{var marker=new google.maps.Marker({position: new google.maps.LatLng(m.lat, m.lng),bounds:true,id:'o'+m.id,letter:m.index,map:map,icon:icon,title:m.title});}
google.maps.event.addListener(map,'click',function(){iw.close();});
google.maps.event.addListener(marker,'click',function(){iw.close();iw.setContent(contentString);iw.open(map,marker);});
if(m.img==''){var contentString=''+ m.title +'';}
else{var contentString=''+ m.title +'
';}
});
});
}