function GMap() {
var latlng=[
{"id":"251","act":"n","title":"Reichstag","lat":"52.5186220","lng":"13.3761800","url":"https://www.allplacestovisit.com/germany/berlin/reichstag/","img":"https://www.allplacestovisit.com/upl/places/2019/reichstag.jpg"},
{"id":"252","act":"n","title":"Tiergarten","lat":"52.5140690","lng":"13.3619300","url":"https://www.allplacestovisit.com/germany/berlin/tiergarten/","img":"https://www.allplacestovisit.com/upl/places/2019/tiergarten.jpg"},
{"id":"253","act":"n","title":"Tempelhofer Feld","lat":"52.4753650","lng":"13.4023540","url":"https://www.allplacestovisit.com/germany/berlin/tempelhofer-feld/","img":"https://www.allplacestovisit.com/upl/places/2019/tempelhofer-feld.jpg"},
{"id":"254","act":"n","title":"Bathing lakes","lat":"52.4381280","lng":"13.1794650","url":"https://www.allplacestovisit.com/germany/berlin/bathing-lakes/","img":"https://www.allplacestovisit.com/upl/places/2019/bathing-lakes.jpg"},
{"id":"255","act":"n","title":"Mauerpark","lat":"52.5422620","lng":"13.4031170","url":"https://www.allplacestovisit.com/germany/berlin/mauerpark/","img":"https://www.allplacestovisit.com/upl/places/2019/mauerpark.jpg"},
{"id":"256","act":"n","title":"Berlin Television Tower","lat":"52.5208230","lng":"13.4094200","url":"https://www.allplacestovisit.com/germany/berlin/berlin-television-tower/","img":"https://www.allplacestovisit.com/upl/places/2019/berlin-television-tower.jpg"},
{"id":"257","act":"n","title":"Brandenburg Gate","lat":"52.5162760","lng":"13.3777040","url":"https://www.allplacestovisit.com/germany/berlin/brandenburg-gate/","img":"https://www.allplacestovisit.com/upl/places/2019/brandenburg-gate.jpg"},
{"id":"258","act":"n","title":"Berlin Cathedral","lat":"52.5190670","lng":"13.4010640","url":"https://www.allplacestovisit.com/germany/berlin/berlin-cathedral/","img":"https://www.allplacestovisit.com/upl/places/2019/berlin-cathedral.jpg"},
{"id":"259","act":"n","title":"Watchtower at Potsdamer Platz","lat":"52.5085390","lng":"13.3796770","url":"https://www.allplacestovisit.com/germany/berlin/watchtower-at-potsdamer-platz/","img":"https://www.allplacestovisit.com/upl/places/2019/watchtower-at-potsdamer-platz.jpg"},
{"id":"260","act":"n","title":"Museum Island","lat":"52.5169400","lng":"13.4018940","url":"https://www.allplacestovisit.com/germany/berlin/museum-island/","img":"https://www.allplacestovisit.com/upl/places/2019/museum-island.jpg"},
{"id":"261","act":"n","title":"East Side Gallery","lat":"52.5050280","lng":"13.4396920","url":"https://www.allplacestovisit.com/germany/berlin/east-side-gallery/","img":"https://www.allplacestovisit.com/upl/places/2019/east-side-gallery.jpg"},
{"id":"262","act":"n","title":"Holocaust Memorial","lat":"52.5139490","lng":"13.3787130","url":"https://www.allplacestovisit.com/germany/berlin/holocaust-memorial/","img":"https://www.allplacestovisit.com/upl/places/2019/holocaust-memorial262.jpg"},
{"id":"263","act":"n","title":"A check point Charlie","lat":"52.5074450","lng":"13.3903900","url":"https://www.allplacestovisit.com/germany/berlin/a-check-point-charlie/","img":"https://www.allplacestovisit.com/upl/places/2019/a-check-point-charlie.jpg"},
{"id":"264","act":"n","title":"Charlottenburg Palace","lat":"52.5209340","lng":"13.2956150","url":"https://www.allplacestovisit.com/germany/berlin/charlottenburg-palace/","img":"https://www.allplacestovisit.com/upl/places/2019/charlottenburg-palace264.jpg"},
{"id":"265","act":"n","title":"Berlin Zoo","lat":"52.5079390","lng":"13.3377760","url":"https://www.allplacestovisit.com/germany/berlin/berlin-zoo/","img":"https://www.allplacestovisit.com/upl/places/2019/berlin-zoo.jpg"},
{"id":"270","act":"n","title":"German Museum of Technology (D...","lat":"52.4987240","lng":"13.3778850","url":"https://www.allplacestovisit.com/germany/berlin/deutsches-technikmuseum/","img":"https://www.allplacestovisit.com/upl/places/2019/deutsches-technikmuseum270.jpg"},
{"id":"267","act":"n","title":"Treptower Park","lat":"52.4885020","lng":"13.4697350","url":"https://www.allplacestovisit.com/germany/berlin/treptower-park/","img":"https://www.allplacestovisit.com/upl/places/2019/treptower-park.jpg"},
{"id":"269","act":"n","title":"Berlin Philharmonie","lat":"52.5100370","lng":"13.3696920","url":"https://www.allplacestovisit.com/germany/berlin/berlin-philharmonie/","img":"https://www.allplacestovisit.com/upl/places/2019/berlin-philharmonie.jpg"},
{"id":"268","act":"n","title":"Gedächtniskirche","lat":"52.5048200","lng":"13.3350820","url":"https://www.allplacestovisit.com/germany/berlin/gedchtniskirche/","img":"https://www.allplacestovisit.com/upl/places/2019/gedchtniskirche.jpg"},
{"id":"271","act":"n","title":"Museum of Natural History (Mus...","lat":"52.5305740","lng":"13.3791750","url":"https://www.allplacestovisit.com/germany/berlin/museum-of-natural-history/","img":"https://www.allplacestovisit.com/upl/places/2019/museum-of-natural-history.jpg"},
{"id":"272","act":"n","title":"Computer Games Museum (Compute...","lat":"52.5176120","lng":"13.4419990","url":"https://www.allplacestovisit.com/germany/berlin/computer-games-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/computer-games-museum.jpg"},
{"id":"273","act":"n","title":"Gardens of the world (Gärten ...","lat":"52.5382530","lng":"13.5693610","url":"https://www.allplacestovisit.com/germany/berlin/gardens-of-the-world/","img":"https://www.allplacestovisit.com/upl/places/2019/gardens-of-the-world.jpg"},
{"id":"274","act":"n","title":"LEGOLAND Discovery Centre","lat":"52.5100130","lng":"13.3732850","url":"https://www.allplacestovisit.com/germany/berlin/legoland-discovery-centre/","img":"https://www.allplacestovisit.com/upl/places/2019/legoland-discovery-centre.jpg"},
{"id":"275","act":"n","title":"Zeiss Major Planetarium","lat":"52.5430200","lng":"13.4280280","url":"https://www.allplacestovisit.com/germany/berlin/zeiss-planetarium/","img":"https://www.allplacestovisit.com/upl/places/2019/zeiss-planetarium.jpg"},
{"id":"276","act":"n","title":"JUMP House Berlin","lat":"52.5827400","lng":"13.3118320","url":"https://www.allplacestovisit.com/germany/berlin/jump-house-berlin/","img":"https://www.allplacestovisit.com/upl/places/2019/jump-house-berlin.jpg"},
{"id":"279","act":"n","title":"Oberbaumbrücke","lat":"52.5019020","lng":"13.4457000","url":"https://www.allplacestovisit.com/germany/berlin/oberbaumbrcke/","img":"https://www.allplacestovisit.com/upl/places/2019/oberbaumbrcke.jpg"},
{"id":"280","act":"n","title":"Designpanoptikum","lat":"52.5169060","lng":"13.4059630","url":"https://www.allplacestovisit.com/germany/berlin/designpanoptikum/","img":"https://www.allplacestovisit.com/upl/places/2019/designpanoptikum.jpg"},
{"id":"281","act":"n","title":"Game Science Center","lat":"52.5049460","lng":"13.3933500","url":"https://www.allplacestovisit.com/germany/berlin/game-science-center/","img":"https://www.allplacestovisit.com/upl/places/2019/game-science-center.jpg"},
{"id":"641","act":"n","title":"Alexanderplatz","lat":"52.5219683","lng":"13.4133275","url":"https://www.allplacestovisit.com/germany/berlin/alexanderplatz/","img":"https://www.allplacestovisit.com/upl/places/2021/alexanderplatz.jpg"},
{"id":"642","act":"n","title":"Soviet War Memorial Tiergarten","lat":"52.5166391","lng":"13.3719236","url":"https://www.allplacestovisit.com/germany/berlin/soviet-war-memorial-tiergarten/","img":"https://www.allplacestovisit.com/upl/places/2021/soviet-war-memorial-tiergarten.jpg"},
{"id":"643","act":"n","title":"House of World Culture","lat":"52.5184989","lng":"13.3644649","url":"https://www.allplacestovisit.com/germany/berlin/house-of-world-culture/","img":"https://www.allplacestovisit.com/upl/places/2021/house-of-world-culture.jpg"},
{"id":"645","act":"n","title":"Unter den Linden","lat":"52.5170205","lng":"13.3890190","url":"https://www.allplacestovisit.com/germany/berlin/unter-den-linden/","img":"https://www.allplacestovisit.com/upl/places/2021/unter-den-linden.jpg"},
{"id":"646","act":"n","title":"Potsdamer Platz","lat":"52.5096618","lng":"13.3759334","url":"https://www.allplacestovisit.com/germany/berlin/potsdamer-platz/","img":"https://www.allplacestovisit.com/upl/places/2021/potsdamer-platz.jpg"},
{"id":"647","act":"y","title":"Bellevue Palace (Schloss Belle...","lat":"52.5172788","lng":"13.3524387","url":"https://www.allplacestovisit.com/germany/berlin/schloss-bellevue/","img":"https://www.allplacestovisit.com/upl/places/2021/schloss-bellevue.png"},
{"id":"648","act":"n","title":"The Victory Column (Siegessäu...","lat":"52.5145434","lng":"13.3501296","url":"https://www.allplacestovisit.com/germany/berlin/the-victory-column/","img":"https://www.allplacestovisit.com/upl/places/2021/the-victory-column.jpg"},
];
var iw=null;
$(function() {
var map_center=new google.maps.LatLng(52.5162550,13.4069270);
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:10,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 +'
';}
});
});
}