function GMap() { var latlng=[ {"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":"y","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(38.4722514,-28.3172800); 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 +'
';} }); }); }