function GMap() {
var latlng=[
{"id":"622","act":"n","title":"Jeronimos Monastery","lat":"38.6978909","lng":"-9.2067039","url":"https://www.allplacestovisit.com/portugal/lisbon/jeronimos-monastery/","img":"https://www.allplacestovisit.com/upl/places/2021/jeronimos-monastery.jpg"},
{"id":"623","act":"n","title":"Queluz Palace","lat":"38.7507201","lng":"-9.2590851","url":"https://www.allplacestovisit.com/portugal/lisbon/queluz-palace/","img":"https://www.allplacestovisit.com/upl/places/2021/queluz-palace.png"},
{"id":"624","act":"n","title":"Lisbon zoo","lat":"38.7420585","lng":"-9.1686936","url":"https://www.allplacestovisit.com/portugal/lisbon/lisbon-zoo/","img":"https://www.allplacestovisit.com/upl/places/2021/lisbon-zoo.png"},
{"id":"625","act":"n","title":"Alfama district ","lat":"38.7407540","lng":"-9.1464880","url":"https://www.allplacestovisit.com/portugal/lisbon/alfama-district-in-lisbon/","img":"https://www.allplacestovisit.com/upl/places/2021/alfama-district-in-lisbon.jpg"},
{"id":"626","act":"n","title":"Praça do Comércio","lat":"38.7075301","lng":"-9.1364519","url":"https://www.allplacestovisit.com/portugal/lisbon/praa-do-comrcio/","img":"https://www.allplacestovisit.com/upl/places/2021/praa-do-comrcio.jpg"},
{"id":"627","act":"n","title":"Trindade Beer Factory","lat":"38.7124651","lng":"-9.1424826","url":"https://www.allplacestovisit.com/portugal/lisbon/trindade-beer-factory/","img":"https://www.allplacestovisit.com/upl/places/2021/trindade-beer-factory.png"},
{"id":"628","act":"n","title":"Puppet hospital - puppet museu...","lat":"38.7079761","lng":"-9.1557756","url":"https://www.allplacestovisit.com/portugal/lisbon/puppet-hospital-puppet-museum/","img":"https://www.allplacestovisit.com/upl/places/2021/puppet-hospital-puppet-museum.jpg"},
{"id":"629","act":"n","title":"House with thorns","lat":"38.7090312","lng":"-9.1326850","url":"https://www.allplacestovisit.com/portugal/lisbon/house-with-thorns/","img":"https://www.allplacestovisit.com/upl/places/2021/house-with-thorns.png"},
{"id":"630","act":"n","title":"Electricity Museum","lat":"38.6960111","lng":"-9.1953543","url":"https://www.allplacestovisit.com/portugal/lisbon/electricity-museum/","img":"https://www.allplacestovisit.com/upl/places/2021/electricity-museum.png"},
{"id":"632","act":"n","title":"Museu Arqueologico do Carmo","lat":"45.4125213","lng":"12.3680600","url":"https://www.allplacestovisit.com/portugal/lisbon/museu-arqueologico-do-carmo/","img":"https://www.allplacestovisit.com/upl/places/2021/museu-arqueologico-do-carmo.png"},
{"id":"633","act":"n","title":"Mafra Palace","lat":"38.9368520","lng":"-9.3258864","url":"https://www.allplacestovisit.com/portugal/lisbon/mafra-palace/","img":"https://www.allplacestovisit.com/upl/places/2021/mafra-palace.png"},
{"id":"640","act":"y","title":"Livraria Simão","lat":"38.7128000","lng":"-9.1361000","url":"https://www.allplacestovisit.com/portugal/lisbon/livraria-simo/","img":"https://www.allplacestovisit.com/upl/places/2021/livraria-simo.jpg"},
];
var iw=null;
$(function() {
var map_center=new google.maps.LatLng(38.7280886,-9.1442392);
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 +'
';}
});
});
}