function GMap() {
var latlng=[
{"id":"212","act":"n","title":"Mosta Dome","lat":"35.9099420","lng":"14.4259350","url":"https://www.allplacestovisit.com/malta/mosta-dome/","img":"https://www.allplacestovisit.com/upl/places/2019/mosta-dome.jpg"},
{"id":"214","act":"n","title":"Golden Bay","lat":"35.9339200","lng":"14.3441930","url":"https://www.allplacestovisit.com/malta/golden-bay/","img":"https://www.allplacestovisit.com/upl/places/2019/golden-bay.jpg"},
{"id":"218","act":"n","title":"Marsaxlokk","lat":"35.8410330","lng":"14.5450130","url":"https://www.allplacestovisit.com/malta/marsaxlokk/","img":"https://www.allplacestovisit.com/upl/places/2019/marsaxlokk.jpg"},
{"id":"222","act":"n","title":"Tarxien Temples","lat":"35.8691840","lng":"14.5119310","url":"https://www.allplacestovisit.com/malta/tarxien-temples/","img":"https://www.allplacestovisit.com/upl/places/2019/tarxien-temples.jpg"},
{"id":"223","act":"n","title":"Ghar Dalam Cave and Museum","lat":"35.8365100","lng":"14.5280320","url":"https://www.allplacestovisit.com/malta/ghar-dalam-cave-and-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/ghar-dalam-cave-and-museum.jpg"},
{"id":"225","act":"n","title":"San Anton Gardens","lat":"35.8958060","lng":"14.4479070","url":"https://www.allplacestovisit.com/malta/san-anton-gardens/","img":"https://www.allplacestovisit.com/upl/places/2019/san-anton-gardens225.jpg"},
{"id":"226","act":"n","title":"Mellieha Air Raid Shelter","lat":"35.9600050","lng":"14.3613200","url":"https://www.allplacestovisit.com/malta/mellieha-air-raid-shelter/","img":"https://www.allplacestovisit.com/upl/places/2019/mellieha-air-raid-shelter.jpg"},
{"id":"227","act":"n","title":"Popeye Village","lat":"35.9609430","lng":"14.3411520","url":"https://www.allplacestovisit.com/malta/popeye-village/","img":"https://www.allplacestovisit.com/upl/places/2019/popeye-village.jpg"},
{"id":"229","act":"n","title":"St. Peter’s Pool","lat":"35.8329520","lng":"14.5618690","url":"https://www.allplacestovisit.com/malta/st-peters-pool/","img":"https://www.allplacestovisit.com/upl/places/2019/st-peters-pool.jpg"},
{"id":"231","act":"n","title":"Malta National Aquarium","lat":"35.9587060","lng":"14.4232390","url":"https://www.allplacestovisit.com/malta/malta-national-aquarium/","img":"https://www.allplacestovisit.com/upl/places/2019/malta-national-aquarium.jpg"},
{"id":"232","act":"n","title":"Red Tower","lat":"35.9746580","lng":"14.3429330","url":"https://www.allplacestovisit.com/malta/red-tower/","img":"https://www.allplacestovisit.com/upl/places/2019/red-tower.jpg"},
{"id":"234","act":"y","title":"Bird Park","lat":"35.9412830","lng":"14.4196180","url":"https://www.allplacestovisit.com/malta/bird-park/","img":"https://www.allplacestovisit.com/upl/places/2019/bird-park.jpg"},
{"id":"235","act":"n","title":"Malta Classic Car Museum","lat":"35.9551960","lng":"14.4206700","url":"https://www.allplacestovisit.com/malta/malta-classic-car-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/malta-classic-car-museum.jpg"},
{"id":"236","act":"n","title":"Playmobil Fun Park ","lat":"35.8130110","lng":"14.5049040","url":"https://www.allplacestovisit.com/malta/playmobil-fun-park-/","img":"https://www.allplacestovisit.com/upl/places/2019/playmobil-fun-park-.jpg"},
{"id":"237","act":"n","title":"Limestone Heritage Park","lat":"35.8531400","lng":"14.4431610","url":"https://www.allplacestovisit.com/malta/limestone-heritage-park/","img":"https://www.allplacestovisit.com/upl/places/2019/limestone-heritage-park.jpg"},
{"id":"240","act":"n","title":"Dingli Cliffs","lat":"35.8521489","lng":"14.3853830","url":"https://www.allplacestovisit.com/malta/dingli-cliffs/","img":"https://www.allplacestovisit.com/upl/places/2019/dingli-cliffs-malta.jpg"},
{"id":"242","act":"n","title":"Malta Aviation Museum","lat":"0.0000000","lng":"0.0000000","url":"https://www.allplacestovisit.com/malta/malta-aviation-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/malta-aviation-museum.jpg"},
{"id":"248","act":"n","title":"Maritime Museum","lat":"35.8877120","lng":"14.5206800","url":"https://www.allplacestovisit.com/malta/maritime-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/maritime-museum248.jpg"},
{"id":"550","act":"n","title":"The Manoel Theatre","lat":"35.8997590","lng":"14.5123803","url":"https://www.allplacestovisit.com/malta/the-manoel-theatre/","img":"https://www.allplacestovisit.com/upl/places/2021/the-manoel-theatre550.jpg"},
{"id":"553","act":"n","title":"The Inquisitor’s Palace","lat":"35.8876793","lng":"14.5224171","url":"https://www.allplacestovisit.com/malta/the-inquisitors-palace/","img":"https://www.allplacestovisit.com/upl/places/2021/the-inquisitors-palace.jpg"},
{"id":"554","act":"n","title":"Fort St. Angelo","lat":"35.8924715","lng":"14.5178193","url":"https://www.allplacestovisit.com/malta/fort-st-angelo/","img":"https://www.allplacestovisit.com/upl/places/2021/fort-st.-angelo.png"},
{"id":"555","act":"n","title":"Safe Haven Garden","lat":"35.8905735","lng":"14.5141004","url":"https://www.allplacestovisit.com/malta/safe-haven-garden-at-senglea/","img":"https://www.allplacestovisit.com/upl/places/2021/safe-haven-garden-at-senglea.jpg"},
{"id":"569","act":"n","title":"Hagar Qim temples","lat":"35.8276887","lng":"14.4417235","url":"https://www.allplacestovisit.com/malta/hagar-qim-temples/","img":"https://www.allplacestovisit.com/upl/places/2021/hagar-qim-temples.jpg"},
{"id":"584","act":"n","title":"Ghajn Tuffieha Bay","lat":"35.9297095","lng":"14.3450950","url":"https://www.allplacestovisit.com/malta/ghajn-tuffieha-bay/","img":"https://www.allplacestovisit.com/upl/places/2021/ghajn-tuffieha-bay.jpg"},
{"id":"585","act":"n","title":"Ghajn Mixkuka Tower","lat":"35.9308880","lng":"14.3434814","url":"https://www.allplacestovisit.com/malta/ghajn-mixkuka-tower/","img":"https://www.allplacestovisit.com/upl/places/2021/gajn-mixkuka-tower.jpg"},
{"id":"586","act":"n","title":"Comino island","lat":"36.0100906","lng":"14.3355182","url":"https://www.allplacestovisit.com/malta/comino-island/","img":"https://www.allplacestovisit.com/upl/places/2021/comino-island.jpg"},
{"id":"213","act":"n","title":"The Island of Gozo","lat":"36.0235640","lng":"14.2986470","url":"https://www.allplacestovisit.com/malta/gozo-island/gozo/","img":"https://www.allplacestovisit.com/upl/places/2019/gozo213.jpg"},
{"id":"217","act":"n","title":"Ggantija Temples","lat":"36.0472530","lng":"14.2691020","url":"https://www.allplacestovisit.com/malta/gozo-island/ggantija-temples/","img":"https://www.allplacestovisit.com/upl/places/2019/ggantija-temples.jpg"},
{"id":"228","act":"n","title":"A Natural Pool Near Dwejra Bay","lat":"36.0469280","lng":"14.1909080","url":"https://www.allplacestovisit.com/malta/gozo-island/a-natural-pool-near-dwejra-bay/","img":"https://www.allplacestovisit.com/upl/places/2019/a-natural-pool-near-dwejra-bay.jpg"},
{"id":"238","act":"n","title":"Pomzkizillious Toy Museum","lat":"36.0523430","lng":"14.2693520","url":"https://www.allplacestovisit.com/malta/gozo-island/pomzkizillious-toy-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/pomzkizillious-toy-museum.jpg"},
{"id":"239","act":"n","title":"Ta’ Pinu Basilica, Gozo","lat":"36.0619730","lng":"14.2148380","url":"https://www.allplacestovisit.com/malta/gozo-island/ta-pinu-basilica-gozo/","img":"https://www.allplacestovisit.com/upl/places/2019/ta-pinu-basilica-gozo239.jpg"},
{"id":"243","act":"n","title":"Salt Pans","lat":"36.0797450","lng":"14.2460560","url":"https://www.allplacestovisit.com/malta/gozo-island/salt-pans/","img":"https://www.allplacestovisit.com/upl/places/2019/salt-pans.jpg"},
{"id":"205","act":"n","title":"Upper Barrakka Gardens","lat":"35.8949040","lng":"14.5120450","url":"https://www.allplacestovisit.com/malta/valletta/upper-barrakka-gardens/","img":"https://www.allplacestovisit.com/upl/places/2019/upper-barrakka-gardens.jpg"},
{"id":"206","act":"n","title":"HMS Maori","lat":"35.9029030","lng":"14.5158730","url":"https://www.allplacestovisit.com/malta/valletta/hms-maori/","img":"https://www.allplacestovisit.com/upl/places/2019/hms-maori.jpg"},
{"id":"208","act":"n","title":"Lascaris War Rooms","lat":"35.8948670","lng":"14.5128040","url":"https://www.allplacestovisit.com/malta/valletta/lascaris-war-rooms/","img":"https://www.allplacestovisit.com/upl/places/2019/lascaris-war-rooms.jpg"},
{"id":"209","act":"n","title":"Casa Rocca Piccola","lat":"35.8998330","lng":"14.5152740","url":"https://www.allplacestovisit.com/malta/valletta/casa-rocca-piccola/","img":"https://www.allplacestovisit.com/upl/places/2019/casa-rocca-piccola.jpg"},
{"id":"210","act":"n","title":"Fort St. Elmo and Malta War Mu...","lat":"35.9028820","lng":"14.5210340","url":"https://www.allplacestovisit.com/malta/valletta/fort-st.-elmo/","img":"https://www.allplacestovisit.com/upl/places/2019/fort-st.-elmo.jpg"},
{"id":"215","act":"n","title":"St. John’s Co-Cathedral","lat":"35.8975980","lng":"14.5124950","url":"https://www.allplacestovisit.com/malta/valletta/st.-johns-co-cathedral/","img":"https://www.allplacestovisit.com/upl/places/2019/st.-johns-co-cathedral.jpg"},
{"id":"216","act":"n","title":"Palazzo Parisio and Gardens","lat":"35.8962970","lng":"14.5114390","url":"https://www.allplacestovisit.com/malta/valletta/palazzo-parisio-and-gardens/","img":"https://www.allplacestovisit.com/upl/places/2019/palazzo-parisio-and-gardens.jpg"},
{"id":"219","act":"n","title":"National Museum of Archeology","lat":"35.8974470","lng":"14.5111300","url":"https://www.allplacestovisit.com/malta/valletta/national-museum-of-archeology/","img":"https://www.allplacestovisit.com/upl/places/2019/national-museum-of-archeology219.jpg"},
{"id":"220","act":"n","title":"Auberge de Castille","lat":"35.8958850","lng":"14.5113670","url":"https://www.allplacestovisit.com/malta/valletta/auberge-de-castille/","img":"https://www.allplacestovisit.com/upl/places/2019/auberge-de-castille.jpg"},
{"id":"241","act":"n","title":"Grand Master's Palace","lat":"35.8983800","lng":"14.5137550","url":"https://www.allplacestovisit.com/malta/valletta/grand-masters-palace/","img":"https://www.allplacestovisit.com/upl/places/2019/grand-masters-palace.jpg"},
{"id":"245","act":"n","title":"Parliament Building","lat":"35.8962490","lng":"14.5096980","url":"https://www.allplacestovisit.com/malta/valletta/parliament-building/","img":"https://www.allplacestovisit.com/upl/places/2019/parliament-building.jpg"},
{"id":"552","act":"n","title":"The Barraka Gardens","lat":"35.8973740","lng":"14.5175440","url":"https://www.allplacestovisit.com/malta/valletta/the-barraka-gardens/","img":"https://www.allplacestovisit.com/upl/places/2021/the-barraka-gardens.jpg"},
{"id":"204","act":"n","title":"Mdina & Rabat","lat":"35.8871640","lng":"14.4037570","url":"https://www.allplacestovisit.com/malta/mdina/mdina-town/","img":"https://www.allplacestovisit.com/upl/places/2019/mdina.jpg"},
{"id":"233","act":"n","title":"St. Paul’s Catacombs","lat":"35.8804100","lng":"14.3976580","url":"https://www.allplacestovisit.com/malta/mdina/st.-pauls-catacombs/","img":"https://www.allplacestovisit.com/upl/places/2019/st.-pauls-catacombs.jpg"},
{"id":"247","act":"n","title":"Palazzo Falson","lat":"35.8870670","lng":"14.4030920","url":"https://www.allplacestovisit.com/malta/mdina/palazzo-falson/","img":"https://www.allplacestovisit.com/upl/places/2019/palazzo-falson.jpg"},
{"id":"567","act":"n","title":"Vilhena Palace","lat":"35.8848060","lng":"14.4038783","url":"https://www.allplacestovisit.com/malta/mdina/vilhena-palace/","img":"https://www.allplacestovisit.com/upl/places/2021/vilhena-palace.jpg"},
{"id":"246","act":"n","title":"The Domvs Romana (Roman Villa)","lat":"35.8850890","lng":"14.4003730","url":"https://www.allplacestovisit.com/malta/rabat/roman-villa/","img":"https://www.allplacestovisit.com/upl/places/2019/roman-villa.jpg"},
{"id":"556","act":"n","title":"St. Paul’s Cathedral","lat":"35.8818658","lng":"14.3989596","url":"https://www.allplacestovisit.com/malta/rabat/st.-pauls-cathedral/","img":"https://www.allplacestovisit.com/upl/places/2021/st.-pauls-cathedral.jpg"},
{"id":"565","act":"n","title":"Sy. Agatha’s Catacombs","lat":"35.8806181","lng":"14.3966358","url":"https://www.allplacestovisit.com/malta/rabat/sy-agathas-catacombs/","img":"https://www.allplacestovisit.com/upl/places/2021/sy-agathas-catacombs.jpg"},
{"id":"211","act":"n","title":"Comino Cave","lat":"36.0179020","lng":"14.3406120","url":"https://www.allplacestovisit.com/malta/comino/comino-cave/","img":"https://www.allplacestovisit.com/upl/places/2019/comino-cave.jpg"},
{"id":"230","act":"n","title":"Blue Grotto","lat":"35.8210180","lng":"14.4566230","url":"https://www.allplacestovisit.com/malta/comino/blue-grotto/","img":"https://www.allplacestovisit.com/upl/places/2019/blue-grotto.jpg"},
{"id":"244","act":"n","title":"Blue Lagoon","lat":"36.0141317","lng":"14.3243721","url":"https://www.allplacestovisit.com/malta/comino/blue-lagoon-malta/","img":"https://www.allplacestovisit.com/upl/places/2019/blue-lagoon-malta.jpg"},
{"id":"605","act":"n","title":"Santa Marija Caves","lat":"36.0178735","lng":"14.3406129","url":"https://www.allplacestovisit.com/malta/comino/santa-marija-caves/","img":"https://www.allplacestovisit.com/upl/places/2021/santa-marija-caves.jpg"},
{"id":"606","act":"n","title":"Santa Marija Bay","lat":"36.0164099","lng":"14.3368817","url":"https://www.allplacestovisit.com/malta/comino/santa-marija-bay/","img":"https://www.allplacestovisit.com/upl/places/2021/santa-marija-bay.jpg"},
{"id":"607","act":"n","title":"Crystal Lagoon","lat":"36.0104201","lng":"14.3279300","url":"https://www.allplacestovisit.com/malta/comino/crystal-lagoon/","img":"https://www.allplacestovisit.com/upl/places/2021/crystal-lagoon.jpg"},
{"id":"593","act":"n","title":"Parish Church of St. Catherine","lat":"35.8305704","lng":"14.4749048","url":"https://www.allplacestovisit.com/malta/zurrieq/parish-church-of-st.-catherine/","img":"https://www.allplacestovisit.com/upl/places/2021/parish-church-of-st.-catherine.png"},
{"id":"594","act":"n","title":"Church of the Annunciation of ...","lat":"35.8392814","lng":"14.4709441","url":"https://www.allplacestovisit.com/malta/zurrieq/church-of-the-annunciation-of-our-lady/","img":"https://www.allplacestovisit.com/upl/places/2021/church-of-the-annunciation-of-our-lady.jpg"},
{"id":"595","act":"n","title":"The Xarolla Windmill","lat":"35.8318024","lng":"14.4806654","url":"https://www.allplacestovisit.com/malta/zurrieq/the-xarolla-windmill/","img":"https://www.allplacestovisit.com/upl/places/2021/the-xarolla-windmill.jpg"},
];
var iw=null;
$(function() {
var map_center=new google.maps.LatLng(35.9535660,14.4485220);
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 +'
';}
});
});
}