function GMap() {
var latlng=[
{"id":"680","act":"n","title":"Rotterdam Town Hall","lat":"51.9226913","lng":"4.4791712","url":"https://www.allplacestovisit.com/netherlands/rotterdam/rotterdam-town-hall/","img":"https://www.allplacestovisit.com/upl/places/2021/rotterdam-town-hall.jpg"},
{"id":"681","act":"n","title":"Erasmus bridge","lat":"51.9090040","lng":"4.4871120","url":"https://www.allplacestovisit.com/netherlands/rotterdam/erasmus-bridge/","img":"https://www.allplacestovisit.com/upl/places/2021/erasmus-bridge.jpg"},
{"id":"682","act":"n","title":"Boijmans van Beuningen Museum","lat":"51.9142079","lng":"4.4733300","url":"https://www.allplacestovisit.com/netherlands/rotterdam/boijmans-van-beuningen-museum/","img":"https://www.allplacestovisit.com/upl/places/2021/boijmans-van-beuningen-museum.png"},
{"id":"683","act":"n","title":"Maritime Museum","lat":"51.9175663","lng":"4.4822147","url":"https://www.allplacestovisit.com/netherlands/rotterdam/maritimemuseum/","img":"https://www.allplacestovisit.com/upl/places/2021/maritimemuseum.jpg"},
{"id":"692","act":"n","title":"Netherlands Institute of Archi...","lat":"51.9143919","lng":"4.4710566","url":"https://www.allplacestovisit.com/netherlands/rotterdam/netherlands-institute-of-architecture/","img":"https://www.allplacestovisit.com/upl/places/2021/netherlands-institute-of-architecture.jpg"},
{"id":"693","act":"n","title":"Natural History Museum","lat":"51.9107111","lng":"4.4724638","url":"https://www.allplacestovisit.com/netherlands/rotterdam/natural-history-museum/","img":"https://www.allplacestovisit.com/upl/places/2021/natural-history-museum.jpg"},
{"id":"694","act":"n","title":"Chabot Museum","lat":"51.9146732","lng":"4.4723810","url":"https://www.allplacestovisit.com/netherlands/rotterdam/chabot-museum/","img":"https://www.allplacestovisit.com/upl/places/2021/shabo-museum.jpg"},
{"id":"695","act":"n","title":"Netherlands Museum of Photogra...","lat":"51.9056106","lng":"4.4871788","url":"https://www.allplacestovisit.com/netherlands/rotterdam/netherlands-museum-of-photography/","img":"https://www.allplacestovisit.com/upl/places/2021/netherlands-museum-of-photography.jpg"},
{"id":"696","act":"n","title":"Wereldmuseum","lat":"51.9078604","lng":"4.4804390","url":"https://www.allplacestovisit.com/netherlands/rotterdam/wereldmuseum/","img":"https://www.allplacestovisit.com/upl/places/2021/wereldmuseum.jpg"},
{"id":"697","act":"n","title":"Kunsthal","lat":"51.9108048","lng":"4.4736816","url":"https://www.allplacestovisit.com/netherlands/rotterdam/kunsthal/","img":"https://www.allplacestovisit.com/upl/places/2021/kunsthal.jpg"},
{"id":"698","act":"n","title":"Sonneveld house","lat":"51.9156191","lng":"4.4723261","url":"https://www.allplacestovisit.com/netherlands/rotterdam/sonneveld-house/","img":"https://www.allplacestovisit.com/upl/places/2021/sonneveld-house.jpg"},
{"id":"699","act":"n","title":"Kunstinstituut Melly","lat":"51.9154809","lng":"4.4770039","url":"https://www.allplacestovisit.com/netherlands/rotterdam/kunstinstituut-melly/","img":"https://www.allplacestovisit.com/upl/places/2021/kunstinstituut-melly.jpg"},
];
var iw=null;
$(function() {
var map_center=new google.maps.LatLng(51.9260598,4.4613007);
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 +'
';}
});
});
}