function GMap() {
var latlng=[
{"id":"204","act":"n","title":"Mdina & Rabat","lat":"35.8871640","lng":"14.4037570","url":"https://www.allplacestovisit.com/malta/mdina/mdina-town/","img":"https://www.allplacestovisit.com/upl/places/2019/mdina.jpg"},
{"id":"233","act":"n","title":"St. Paul’s Catacombs","lat":"35.8804100","lng":"14.3976580","url":"https://www.allplacestovisit.com/malta/mdina/st.-pauls-catacombs/","img":"https://www.allplacestovisit.com/upl/places/2019/st.-pauls-catacombs.jpg"},
{"id":"247","act":"n","title":"Palazzo Falson","lat":"35.8870670","lng":"14.4030920","url":"https://www.allplacestovisit.com/malta/mdina/palazzo-falson/","img":"https://www.allplacestovisit.com/upl/places/2019/palazzo-falson.jpg"},
{"id":"567","act":"n","title":"Vilhena Palace","lat":"35.8848060","lng":"14.4038783","url":"https://www.allplacestovisit.com/malta/mdina/vilhena-palace/","img":"https://www.allplacestovisit.com/upl/places/2021/vilhena-palace.jpg"},
];
var iw=null;
$(function() {
var map_center=new google.maps.LatLng(35.8869202,14.4056456);
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:14,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 +'
';}
});
});
}