function GMap() {
var latlng=[
{"id":"441","act":"n","title":"Bom Jesus do Monte","lat":"41.5547650","lng":"-8.3770510","url":"https://www.allplacestovisit.com/portugal/bom-jesus-do-monte/","img":"https://www.allplacestovisit.com/upl/places/2020/bom-jesus-do-monte.jpg"},
{"id":"442","act":"n","title":"Amarante","lat":"41.2696570","lng":"-8.0826640","url":"https://www.allplacestovisit.com/portugal/amarante/","img":"https://www.allplacestovisit.com/upl/places/2020/amarante.jpg"},
{"id":"450","act":"n","title":"Church of São Francisco, Port...","lat":"41.1410430","lng":"-8.6157170","url":"https://www.allplacestovisit.com/portugal/church-of-so-francisco-portugal/","img":"https://www.allplacestovisit.com/upl/places/2020/church-of-so-francisco-portugal.jpg"},
{"id":"451","act":"n","title":"Casa da Música","lat":"41.1589050","lng":"-8.6307070","url":"https://www.allplacestovisit.com/portugal/casa-da-msica/","img":"https://www.allplacestovisit.com/upl/places/2020/casa-da-msica.jpg"},
{"id":"443","act":"n","title":"Sortelha","lat":"40.3308330","lng":"-7.2120860","url":"https://www.allplacestovisit.com/portugal/sortelha/","img":"https://www.allplacestovisit.com/upl/places/2020/sortelha.jpg"},
{"id":"444","act":"n","title":"Sintra National Palace","lat":"38.7976710","lng":"-9.3906660","url":"https://www.allplacestovisit.com/portugal/sintra-palace/","img":"https://www.allplacestovisit.com/upl/places/2020/sintra-palace444.jpg"},
{"id":"446","act":"n","title":"Mosteiro dos Jeronimos","lat":"38.6979240","lng":"-9.2066930","url":"https://www.allplacestovisit.com/portugal/mosteiro-dos-jeronimos/","img":"https://www.allplacestovisit.com/upl/places/2020/mosteiro-dos-jeronimos.jpg"},
{"id":"447","act":"y","title":"Belem Tower","lat":"38.6915870","lng":"-9.2159770","url":"https://www.allplacestovisit.com/portugal/belem-tower/","img":"https://www.allplacestovisit.com/upl/places/2020/belem-tower.jpg"},
{"id":"448","act":"n","title":"Padrão dos Descobrimentos","lat":"38.6936140","lng":"-9.2057120","url":"https://www.allplacestovisit.com/portugal/padro-dos-descobrimentos/","img":"https://www.allplacestovisit.com/upl/places/2020/padro-dos-descobrimentos.jpg"},
{"id":"449","act":"n","title":"Luís I Bridge","lat":"41.1399750","lng":"-8.6094590","url":"https://www.allplacestovisit.com/portugal/lus-i-bridge/","img":"https://www.allplacestovisit.com/upl/places/2020/lus-i-bridge.jpg"},
{"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":"n","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"},
{"id":"589","act":"n","title":"FC Porto Museum","lat":"41.1607690","lng":"-8.5827160","url":"https://www.allplacestovisit.com/portugal/porto/fc-porto-museum/","img":"https://www.allplacestovisit.com/upl/places/2021/fc-porto-museum.jpg"},
{"id":"590","act":"n","title":"Climb the bell tower of the Cl...","lat":"41.1458222","lng":"-8.6142260","url":"https://www.allplacestovisit.com/portugal/porto/climb-the-bell-tower-of-the-clerigouche-church/","img":"https://www.allplacestovisit.com/upl/places/2021/climb-the-bell-tower-of-the-clerigouche-church590.jpg"},
{"id":"591","act":"n","title":"Estação de São Bento","lat":"41.1456637","lng":"-8.6106138","url":"https://www.allplacestovisit.com/portugal/porto/estao-de-so-bento/","img":"https://www.allplacestovisit.com/upl/places/2021/estao-de-so-bento.jpg"},
{"id":"592","act":"n","title":"Lello Bookstore (Livraria Lell...","lat":"41.1469440","lng":"-8.6147220","url":"https://www.allplacestovisit.com/portugal/porto/lello-bookstore-livraria-lello/","img":"https://www.allplacestovisit.com/upl/places/2021/lello-bookstore-livraria-lello.jpg"},
{"id":"721","act":"n","title":"Cape St. Vicente (Cabo de Sao ...","lat":"37.0233303","lng":"-8.9944498","url":"https://www.allplacestovisit.com/portugal/algarve/cape-sao-vicente-cabo-de-sao-vicente/","img":"https://www.allplacestovisit.com/upl/places/2021/cape-sao-vicente-cabo-de-sao-vicente.jpg"},
{"id":"722","act":"n","title":"Silves Castle","lat":"37.1909087","lng":"-8.4379559","url":"https://www.allplacestovisit.com/portugal/algarve/silves-castle/","img":"https://www.allplacestovisit.com/upl/places/2021/silves-castle722.jpg"},
{"id":"724","act":"n","title":"Chapel of St. Anthony","lat":"37.0990638","lng":"-8.6712537","url":"https://www.allplacestovisit.com/portugal/algarve/chapel-of-st.-anthony/","img":"https://www.allplacestovisit.com/upl/places/2021/church-of-st.-anthony724.jpg"},
{"id":"725","act":"n","title":"Meia beach","lat":"37.1182784","lng":"-8.6411536","url":"https://www.allplacestovisit.com/portugal/algarve/meia-beach/","img":"https://www.allplacestovisit.com/upl/places/2021/meia-beach.jpg"},
{"id":"726","act":"n","title":"Dona Ana beach","lat":"37.0918833","lng":"-8.6690446","url":"https://www.allplacestovisit.com/portugal/algarve/dona-ana-beach/","img":"https://www.allplacestovisit.com/upl/places/2021/dona-ana-beach.jpg"},
{"id":"727","act":"n","title":"Camille beach(Praia do Camilo)","lat":"37.0877340","lng":"-8.6682723","url":"https://www.allplacestovisit.com/portugal/algarve/camille-beach/","img":"https://www.allplacestovisit.com/upl/places/2021/camille-beach.jpg"},
{"id":"635","act":"n","title":"Castle of the Moors","lat":"38.7925544","lng":"-9.3893385","url":"https://www.allplacestovisit.com/portugal/sintra/castle-of-the-moors/","img":"https://www.allplacestovisit.com/upl/places/2021/castle-of-the-moors.jpg"},
{"id":"636","act":"n","title":"Montserrat Palace","lat":"38.7933557","lng":"-9.4210241","url":"https://www.allplacestovisit.com/portugal/sintra/montserrat-palace/","img":"https://www.allplacestovisit.com/upl/places/2021/montserrat-palace.jpg"},
{"id":"634","act":"n","title":"Pena Palace","lat":"38.7875823","lng":"-9.3906085","url":"https://www.allplacestovisit.com/portugal/sintra/pena-palace/","img":"https://www.allplacestovisit.com/upl/places/2021/pena-palace.jpg"},
{"id":"728","act":"n","title":"Furnas. Lake and thermal sprin...","lat":"37.7760506","lng":"-25.3104062","url":"https://www.allplacestovisit.com/portugal/azores/furnas.-lake-and-thermal-springs/","img":"https://www.allplacestovisit.com/upl/places/2021/furnas.-lake-and-city.jpg"},
{"id":"751","act":"n","title":"The city of Furnas","lat":"37.7735102","lng":"-25.3099122","url":"https://www.allplacestovisit.com/portugal/azores/the-city-of-furnas/","img":"https://www.allplacestovisit.com/upl/places/2022/the-city-of-furnas.jpg"},
{"id":"752","act":"n","title":"Vila Franco Do Campo and beach...","lat":"37.7279466","lng":"-25.4314821","url":"https://www.allplacestovisit.com/portugal/azores/vila-franco-do-campo-and-beaches/","img":"https://www.allplacestovisit.com/upl/places/2022/vila-franco-do-campo-and-beaches.jpg"},
{"id":"768","act":"n","title":"Terra nostra garden","lat":"37.7716997","lng":"-25.3150853","url":"https://www.allplacestovisit.com/portugal/azores/terra-nostra-garden/","img":""},
];
var iw=null;
$(function() {
var map_center=new google.maps.LatLng(39.9669970,-8.1564280);
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:7,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 +'
';}
});
});
}