function GMap() {
var latlng=[
{"id":"385","act":"n","title":"Rijksmuseum","lat":"52.3600040","lng":"4.8852120","url":"https://www.allplacestovisit.com/netherlands/amsterdam/rijksmuseum/","img":"https://www.allplacestovisit.com/upl/places/2020/rijksmuseum385.jpg"},
{"id":"390","act":"n","title":"Van Gogh Museum","lat":"52.3584190","lng":"4.8810730","url":"https://www.allplacestovisit.com/netherlands/amsterdam/van-gogh-museum/","img":"https://www.allplacestovisit.com/upl/places/2020/van-gogh-museum.jpg"},
{"id":"391","act":"n","title":"Stedelijk Museum","lat":"52.3580180","lng":"4.8797570","url":"https://www.allplacestovisit.com/netherlands/amsterdam/stedelijk-museum-museum-of-modern-art/","img":"https://www.allplacestovisit.com/upl/places/2020/stedelijk-museum-museum-of-modern-art.jpg"},
{"id":"392","act":"n","title":"Foam","lat":"52.3640890","lng":"4.8933210","url":"https://www.allplacestovisit.com/netherlands/amsterdam/foam/","img":"https://www.allplacestovisit.com/upl/places/2020/foam.jpg"},
{"id":"393","act":"n","title":"Tropenmuseum","lat":"52.3626890","lng":"4.9222990","url":"https://www.allplacestovisit.com/netherlands/amsterdam/tropenmuseum/","img":"https://www.allplacestovisit.com/upl/places/2020/tropenmuseum.jpg"},
{"id":"394","act":"n","title":"Willet-Holthuysen Museum","lat":"52.3656760","lng":"4.8989790","url":"https://www.allplacestovisit.com/netherlands/amsterdam/willet-holthuysen-museum/","img":"https://www.allplacestovisit.com/upl/places/2020/willet-holthuysen-museum.jpg"},
];
var iw=null;
$(function() {
var map_center=new google.maps.LatLng(52.3726280,4.8936590);
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:11,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 +'
';}
});
});
}