function GMap() {
var latlng=[
{"id":"140","act":"n","title":"Dobšinská Ice Cave","lat":"48.8742900","lng":"20.3026090","url":"https://www.allplacestovisit.com/slovakia/dobsinsk-ice-cave/","img":"https://www.allplacestovisit.com/upl/places/2019/dobsinsk-ice-cave.jpg"},
{"id":"141","act":"n","title":"Tomášovský View","lat":"48.9448690","lng":"20.4595700","url":"https://www.allplacestovisit.com/slovakia/tomsovsky-view/","img":"https://www.allplacestovisit.com/upl/places/2019/tomsovsky-view.jpg"},
{"id":"142","act":"n","title":"Sidewalk in the Bachledka Tree...","lat":"49.2726640","lng":"20.3105730","url":"https://www.allplacestovisit.com/slovakia/sidewalk-in-the-bachledka-tree-crown/","img":"https://www.allplacestovisit.com/upl/places/2019/sidewalk-in-the-bachledka-tree-crown142.jpg"},
];
var iw=null;
$(function() {
var map_center=new google.maps.LatLng(48.8454040,19.3663360);
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:8,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 +'
';}
});
});
}