function GMap() {
var latlng=[
{"id":"355","act":"n","title":"Kurmrags Lighthouse","lat":"57.5417070","lng":"24.3624530","url":"https://www.allplacestovisit.com/latvia/kurmrags-lighthouse/","img":"https://www.allplacestovisit.com/upl/places/2019/kurmrags-lighthouse.jpg"},
{"id":"354","act":"y","title":"Rocky seashore of Vidzeme","lat":"57.5416990","lng":"24.3624380","url":"https://www.allplacestovisit.com/latvia/rocky-seashore-of-vidzeme/","img":"https://www.allplacestovisit.com/upl/places/2019/rocky-seashore-of-vidzeme.jpg"},
{"id":"357","act":"n","title":"Munchausen's Museum","lat":"57.4630550","lng":"24.4717640","url":"https://www.allplacestovisit.com/latvia/munchausens-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/munchausens-museum.jpg"},
{"id":"370","act":"n","title":"Bauska Motor Museum","lat":"56.4151130","lng":"24.1805440","url":"https://www.allplacestovisit.com/latvia/bauska-motor-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/bauska-motor-museum.jpg"},
{"id":"371","act":"n","title":"Bauska Castle","lat":"56.4034490","lng":"24.1743770","url":"https://www.allplacestovisit.com/latvia/bauska-castle/","img":"https://www.allplacestovisit.com/upl/places/2019/bauska-castle.jpg"},
{"id":"372","act":"n","title":"Rabbit Village","lat":"56.4660900","lng":"24.1604230","url":"https://www.allplacestovisit.com/latvia/rabbit-village/","img":"https://www.allplacestovisit.com/upl/places/2019/rabbit-village372.jpg"},
{"id":"373","act":"n","title":"Rundale Castle","lat":"56.4134450","lng":"24.0244480","url":"https://www.allplacestovisit.com/latvia/rundale-castle/","img":"https://www.allplacestovisit.com/upl/places/2019/rundale-castle.jpg"},
{"id":"374","act":"n","title":"Mežotne Palace","lat":"56.4382110","lng":"24.0528290","url":"https://www.allplacestovisit.com/latvia/mezotne-palace/","img":"https://www.allplacestovisit.com/upl/places/2019/mezotne-palace.jpg"},
{"id":"375","act":"n","title":" Bauska Town Hall","lat":"56.4100460","lng":"24.1856720","url":"https://www.allplacestovisit.com/latvia/-bauska-town-hall/","img":"https://www.allplacestovisit.com/upl/places/2019/-bauska-town-hall.jpg"},
{"id":"536","act":"n","title":"Ventspils Seaside Park","lat":"57.3876160","lng":"21.5329190","url":"https://www.allplacestovisit.com/latvia/ventspils-seaside-park/","img":"https://www.allplacestovisit.com/upl/places/2021/ventspils-seaside-park.jpg"},
{"id":"537","act":"n","title":"Seaside Open-air Museum in Ven...","lat":"57.3849510","lng":"21.5371560","url":"https://www.allplacestovisit.com/latvia/seaside-open-air-museum-in-ventspils/","img":"https://www.allplacestovisit.com/upl/places/2021/seaside-open-air-museum-in-ventspils.jpg"},
{"id":"538","act":"n","title":"Mazbānītis’ Narrow-Gauge R...","lat":"57.3863300","lng":"21.5343150","url":"https://www.allplacestovisit.com/latvia/mazbntis-narrow-gauge-railway-track/","img":"https://www.allplacestovisit.com/upl/places/2021/mazbntis-narrow-gauge-railway-track538.png"},
{"id":"539","act":"n","title":"Užavas Beer brewery","lat":"57.1980166","lng":"21.4414710","url":"https://www.allplacestovisit.com/latvia/uzavas-beer-brewery/","img":"https://www.allplacestovisit.com/upl/places/2021/uzavas-beer-brewery.jpg"},
{"id":"540","act":"n","title":"Northern Fort, Liepaja","lat":"56.5894200","lng":"21.0139540","url":"https://www.allplacestovisit.com/latvia/northern-fort-liepaja/","img":"https://www.allplacestovisit.com/upl/places/2021/northern-fort-liepaja.jpg"},
{"id":"541","act":"n","title":"Liepāja Naval Port","lat":"56.5496370","lng":"21.0087570","url":"https://www.allplacestovisit.com/latvia/liepja-naval-port/","img":"https://www.allplacestovisit.com/upl/places/2021/liepja-naval-port.jpg"},
{"id":"543","act":"n","title":"Karosta Prison","lat":"56.5464680","lng":"21.0210160","url":"https://www.allplacestovisit.com/latvia/karosta-prison/","img":"https://www.allplacestovisit.com/upl/places/2021/karosta-prison.jpg"},
{"id":"544","act":"n","title":"Monument to Mariners Lost at S...","lat":"56.5094285","lng":"20.9915195","url":"https://www.allplacestovisit.com/latvia/monument-to-mariners-lost-at-sea/","img":"https://www.allplacestovisit.com/upl/places/2021/monument-to-mariners-lost-at-sea.jpg"},
{"id":"545","act":"n","title":"The Oskars Kalpaks Bridge","lat":"56.5453164","lng":"21.0045685","url":"https://www.allplacestovisit.com/latvia/the-oskars-kalpaks-bridge/","img":"https://www.allplacestovisit.com/upl/places/2021/the-oskars-kalpaks-bridge.jpg"},
{"id":"376","act":"n","title":"Riežupe Sand Caves","lat":"57.0070450","lng":"21.9870780","url":"https://www.allplacestovisit.com/latvia/riezupe-sand-caves/","img":"https://www.allplacestovisit.com/upl/places/2019/riezupe-sand-caves.jpg"},
{"id":"546","act":"n","title":"Children's science center...","lat":"57.3142910","lng":"25.2887440","url":"https://www.allplacestovisit.com/latvia/childrens-science-center-zinoo/","img":"https://www.allplacestovisit.com/upl/places/2021/childrens-science-center-zinoo.jpg"},
{"id":"548","act":"n","title":"Liepaja Holy Trinity Cathedral","lat":"56.5098610","lng":"21.0134380","url":"https://www.allplacestovisit.com/latvia/liepaja-holy-trinity-cathedral/","img":"https://www.allplacestovisit.com/upl/places/2021/liepaja-holy-trinity-cathedral.jpg"},
{"id":"377","act":"n","title":"Venta Rapid","lat":"56.9682870","lng":"21.9792570","url":"https://www.allplacestovisit.com/latvia/venta-rapid/","img":"https://www.allplacestovisit.com/upl/places/2019/venta-rapid.jpg"},
{"id":"378","act":"n","title":"Museum of the Kuldiga Region","lat":"56.9682140","lng":"21.9765480","url":"https://www.allplacestovisit.com/latvia/museum-of-the-kuldiga-region/","img":"https://www.allplacestovisit.com/upl/places/2019/museum-of-the-kuldiga-region.jpg"},
{"id":"379","act":"n","title":"Strausu Ferma Nornieki","lat":"56.8439410","lng":"21.8894820","url":"https://www.allplacestovisit.com/latvia/strausu-ferma-nornieki/","img":"https://www.allplacestovisit.com/upl/places/2019/strausu-ferma-nornieki.jpg"},
{"id":"380","act":"n","title":"Padure Manor","lat":"57.0183490","lng":"21.9086940","url":"https://www.allplacestovisit.com/latvia/padure-manor/","img":"https://www.allplacestovisit.com/upl/places/2019/padure-manor.jpg"},
{"id":"381","act":"n","title":"Pelči Palace (Pelču pils mui...","lat":"56.9188840","lng":"21.9682010","url":"https://www.allplacestovisit.com/latvia/pelci-palace/","img":"https://www.allplacestovisit.com/upl/places/2019/pelci-palace381.jpg"},
{"id":"382","act":"n","title":"Kuldiga Orthodox Church","lat":"56.9692160","lng":"21.9646870","url":"https://www.allplacestovisit.com/latvia/kuldiga-orthodox-church/","img":"https://www.allplacestovisit.com/upl/places/2019/kuldiga-orthodox-church.jpg"},
{"id":"452","act":"n","title":"Fountain the Drop of Honey","lat":"56.6641130","lng":"22.4920020","url":"https://www.allplacestovisit.com/latvia/fountain-the-drop-of-honey/","img":"https://www.allplacestovisit.com/upl/places/2021/fountain-the-drop-of-honey.jpg"},
{"id":"453","act":"n","title":"J. Rozentals' Museum of H...","lat":"56.6630700","lng":"22.4965710","url":"https://www.allplacestovisit.com/latvia/j.-rozentals-museum-of-history-and-art-saldus/","img":"https://www.allplacestovisit.com/upl/places/2021/j.-rozentals-museum-of-history-and-art-saldus.jpg"},
{"id":"454","act":"n","title":"Kapellers' House, Saldus","lat":"56.6650030","lng":"22.4945860","url":"https://www.allplacestovisit.com/latvia/kapellers-house-saldus/","img":"https://www.allplacestovisit.com/upl/places/2021/kapellers-house-saldus.jpg"},
{"id":"455","act":"n","title":"Saldus Lake and Beach","lat":"56.6719880","lng":"22.5069540","url":"https://www.allplacestovisit.com/latvia/saldus-lake-and-beach/","img":"https://www.allplacestovisit.com/upl/places/2021/saldus-lake-and-beach455.jpg"},
{"id":"456","act":"n","title":"Saldus Food Fctory and Candy &...","lat":"56.6639990","lng":"22.4904840","url":"https://www.allplacestovisit.com/latvia/saldus-food-factory-and-candy-gotina/","img":"https://www.allplacestovisit.com/upl/places/2021/saldus-food-factory-and-candy-gotina.jpg"},
{"id":"457","act":"n","title":"Homemade Ice Cream at the Vaca...","lat":"56.6838960","lng":"22.3300190","url":"https://www.allplacestovisit.com/latvia/homemade-ice-cream-at-the-vacation-cottage-breksi/","img":"https://www.allplacestovisit.com/upl/places/2021/homemade-ice-cream-at-the-vacation-cottage-breksi.jpg"},
{"id":"458","act":"n","title":"Jelgava Palace","lat":"56.6553929","lng":"23.7332615","url":"https://www.allplacestovisit.com/latvia/jelgava-palace/","img":"https://www.allplacestovisit.com/upl/places/2021/jelgava-palace.jpg"},
{"id":"459","act":"n","title":"Jelgava Holy Trinity Church To...","lat":"56.6523937","lng":"23.7289747","url":"https://www.allplacestovisit.com/latvia/jelgava-holy-trinity-church-tower/","img":"https://www.allplacestovisit.com/upl/places/2021/jelgava-holy-trinity-church-tower.jpg"},
{"id":"460","act":"n","title":"Jelgava Old Town Quarter","lat":"56.6512515","lng":"23.7106372","url":"https://www.allplacestovisit.com/latvia/jelgava-old-town-quarter/","img":"https://www.allplacestovisit.com/upl/places/2021/jelgava-old-town-quarter.jpg"},
{"id":"461","act":"n","title":"Jelgava Time Wheel","lat":"56.6506210","lng":"23.7097230","url":"https://www.allplacestovisit.com/latvia/jelgava-time-wheel-jelgava/","img":"https://www.allplacestovisit.com/upl/places/2021/jelgava-time-wheel-jelgava.jpg"},
{"id":"468","act":"n","title":"Pedestrian Bridge "Mītav...","lat":"56.6520279","lng":"23.7318336","url":"https://www.allplacestovisit.com/latvia/pedestrian-bridge-mtava/","img":"https://www.allplacestovisit.com/upl/places/2021/pedestrian-bridge-mtava.jpg"},
{"id":"466","act":"n","title":"Candy Workshop","lat":"56.6402177","lng":"23.7285619","url":"https://www.allplacestovisit.com/latvia/candy-workshop/","img":"https://www.allplacestovisit.com/upl/places/2021/candy-workshop.jpg"},
{"id":"467","act":"n","title":"The statue - fountain Student ...","lat":"56.6519827","lng":"23.7311172","url":"https://www.allplacestovisit.com/latvia/the-statue-fountain-student-of-jelgava/","img":"https://www.allplacestovisit.com/upl/places/2021/the-statue-fountain-student-of-jelgava.jpg"},
{"id":"463","act":"n","title":"Lielupe Floodplain Meadows","lat":"56.6628696","lng":"23.7260572","url":"https://www.allplacestovisit.com/latvia/lielupe-floodplain-meadows/","img":"https://www.allplacestovisit.com/upl/places/2021/lielupe-floodplain-meadows.jpg"},
{"id":"464","act":"n","title":"Uzvaras Park","lat":"56.6590228","lng":"23.7176654","url":"https://www.allplacestovisit.com/latvia/uzvaras-park/","img":"https://www.allplacestovisit.com/upl/places/2021/uzvaras-park.jpg"},
{"id":"462","act":"n","title":"Driksa Riverfront","lat":"56.6519033","lng":"23.7309703","url":"https://www.allplacestovisit.com/latvia/driksa-riverfront/","img":"https://www.allplacestovisit.com/upl/places/2021/driksa-riverfront.jpg"},
{"id":"469","act":"n","title":"Sigulda’s Medieval Castle","lat":"57.1662630","lng":"24.8497845","url":"https://www.allplacestovisit.com/latvia/siguldas-medieval-castle/","img":"https://www.allplacestovisit.com/upl/places/2021/siguldas-medieval-castle.jpg"},
{"id":"470","act":"n","title":"Paradise hill – Painters...","lat":"57.1748640","lng":"24.8658520","url":"https://www.allplacestovisit.com/latvia/paradise-hill-painters-hill/","img":"https://www.allplacestovisit.com/upl/places/2021/paradise-hill-painters-hill.jpg"},
{"id":"471","act":"n","title":"Turaida Museum Reserve","lat":"57.1866819","lng":"24.8472346","url":"https://www.allplacestovisit.com/latvia/turaida-museum-reserve/","img":"https://www.allplacestovisit.com/upl/places/2021/turaida-museum-reserve.jpg"},
{"id":"473","act":"n","title":"Tarzan’s Adventure Park","lat":"57.1592796","lng":"24.8379190","url":"https://www.allplacestovisit.com/latvia/tarzans-adventure-park/","img":"https://www.allplacestovisit.com/upl/places/2021/tarzans-adventure-park.jpg"},
{"id":"474","act":"n","title":"Sigulda Cable Car","lat":"57.1636588","lng":"24.8460684","url":"https://www.allplacestovisit.com/latvia/sigulda-cable-car/","img":"https://www.allplacestovisit.com/upl/places/2021/sigulda-cable-car.jpg"},
{"id":"475","act":"n","title":"Sigulda Bobsleigh Track","lat":"57.1507787","lng":"24.8409799","url":"https://www.allplacestovisit.com/latvia/sigulda-bobsleigh-track/","img":"https://www.allplacestovisit.com/upl/places/2021/sigulda-bobsleigh-track.jpg"},
{"id":"472","act":"n","title":"Peter or Gutmanis Cave","lat":"57.1761710","lng":"24.8423606","url":"https://www.allplacestovisit.com/latvia/peter-or-gutmanis-cave/","img":"https://www.allplacestovisit.com/upl/places/2021/peter-or-gutmanis-cave.jpg"},
{"id":"477","act":"n","title":"Krimulda Manor","lat":"57.1705485","lng":"24.8320730","url":"https://www.allplacestovisit.com/latvia/krimulda-manor/","img":"https://www.allplacestovisit.com/upl/places/2021/krimulda-manor.jpg"},
{"id":"478","act":"n","title":"The Cēsis Castle Complex","lat":"57.3133334","lng":"25.2713763","url":"https://www.allplacestovisit.com/latvia/the-csis-castle-complex/","img":"https://www.allplacestovisit.com/upl/places/2021/the-csis-castle-complex.jpg"},
{"id":"479","act":"n","title":"Āraiši Archaeological Park","lat":"57.2498336","lng":"25.2808387","url":"https://www.allplacestovisit.com/latvia/raisi-archaeological-park/","img":"https://www.allplacestovisit.com/upl/places/2021/raisi-archaeological-park.jpg"},
{"id":"480","act":"n","title":"Old Man of Time Statue","lat":"57.3122698","lng":"25.2715286","url":"https://www.allplacestovisit.com/latvia/old-man-of-time-statue/","img":"https://www.allplacestovisit.com/upl/places/2021/old-man-of-time-statue.jpg"},
{"id":"482","act":"n","title":"Cēsis Enlightenment of Christ...","lat":"57.6075505","lng":"25.2680474","url":"https://www.allplacestovisit.com/latvia/christ-orthodox-church/","img":"https://www.allplacestovisit.com/upl/places/2021/christ-orthodox-church.jpg"},
{"id":"483","act":"n","title":"Daugavpils Fortress","lat":"55.8865314","lng":"26.4951738","url":"https://www.allplacestovisit.com/latvia/daugavpils-fortress/","img":"https://www.allplacestovisit.com/upl/places/2021/daugavpils-fortress.jpg"},
{"id":"484","act":"n","title":"Liksna Manor Park (Liksna path...","lat":"55.9831573","lng":"26.3988175","url":"https://www.allplacestovisit.com/latvia/liksna-manor-park-liksna-paths/","img":"https://www.allplacestovisit.com/upl/places/2021/liksna-manor-park-liksna-paths.jpg"},
{"id":"485","act":"n","title":"Nature Park “Daugavas Loki...","lat":"55.9118659","lng":"26.7257160","url":"https://www.allplacestovisit.com/latvia/nature-park-daugavas-loki/","img":"https://www.allplacestovisit.com/upl/places/2021/nature-park-daugavas-loki.jpg"},
{"id":"486","act":"n","title":"Vecsaliena (Chervonka) Manor C...","lat":"55.8260247","lng":"26.7715938","url":"https://www.allplacestovisit.com/latvia/vecsaliena-chervonka-manor-castle/","img":"https://www.allplacestovisit.com/upl/places/2021/vecsaliena-chervonka-manor-castle.jpg"},
{"id":"487","act":"n","title":"Church Hill","lat":"55.8700785","lng":"26.5399742","url":"https://www.allplacestovisit.com/latvia/church-hill/","img":"https://www.allplacestovisit.com/upl/places/2021/church-hill.jpg"},
{"id":"488","act":"n","title":"Latgale Zoo","lat":"55.8741550","lng":"26.5099266","url":"https://www.allplacestovisit.com/latvia/latgale-zoo/","img":"https://www.allplacestovisit.com/upl/places/2021/latgale-zoo.jpg"},
{"id":"489","act":"n","title":"St. Boriss & Gleb Russian Orth...","lat":"55.8707368","lng":"26.5380669","url":"https://www.allplacestovisit.com/latvia/st.-boriss-gleb-russian-orthodox-cathedral-in-daugavpils/","img":"https://www.allplacestovisit.com/upl/places/2021/st.-boriss-gleb-russian-orthodox-cathedral-in-daugavpils.jpg"},
{"id":"490","act":"n","title":"The Museum of Military Vehicle...","lat":"55.9033550","lng":"26.3762477","url":"https://www.allplacestovisit.com/latvia/the-museum-of-military-vehicles/","img":"https://www.allplacestovisit.com/upl/places/2021/the-museum-of-military-vehicles.jpg"},
{"id":"491","act":"n","title":"Daugavpils Roman Catholic Chur...","lat":"55.8708482","lng":"26.5429415","url":"https://www.allplacestovisit.com/latvia/daugavpils-roman-catholic-church-of-the-blessed-virgin-mary/","img":"https://www.allplacestovisit.com/upl/places/2021/daugavpils-roman-catholic-church-of-the-blessed-virgin-mary.jpg"},
{"id":"492","act":"n","title":"Shmakovka Museum","lat":"55.8705437","lng":"26.5162314","url":"https://www.allplacestovisit.com/latvia/shmakovka-museum/","img":"https://www.allplacestovisit.com/upl/places/2021/shmakovka-museum.jpg"},
{"id":"493","act":"n","title":"Daugavpils Lead Shot Factory","lat":"55.8749179","lng":"26.5353463","url":"https://www.allplacestovisit.com/latvia/daugavpils-lead-shot-factory/","img":"https://www.allplacestovisit.com/upl/places/2021/daugavpils-lead-shot-factory.jpg"},
{"id":"494","act":"n","title":"Sightseeing Tower in Vasargeli...","lat":"55.9149192","lng":"26.8152937","url":"https://www.allplacestovisit.com/latvia/sightseeing-tower-in-vasargeliski/","img":"https://www.allplacestovisit.com/upl/places/2021/sightseeing-tower-in-vasargeliski494.jpg"},
{"id":"495","act":"n","title":"Daugavpils Theatre","lat":"55.8706513","lng":"26.5165806","url":"https://www.allplacestovisit.com/latvia/daugavpils-theatre/","img":"https://www.allplacestovisit.com/upl/places/2021/daugavpils-theatre.jpg"},
{"id":"496","act":"n","title":"Daugavpils Synagogue","lat":"0.0000000","lng":"0.0000000","url":"https://www.allplacestovisit.com/latvia/daugavpils-synagogue/","img":"https://www.allplacestovisit.com/upl/places/2021/daugavpils-synagogue.jpg"},
{"id":"497","act":"n","title":"The Skrinda family museum","lat":"56.0288030","lng":"26.4636844","url":"https://www.allplacestovisit.com/latvia/the-skrinda-family-museum/","img":"https://www.allplacestovisit.com/upl/places/2021/the-skrinda-family-museum.jpg"},
{"id":"498","act":"n","title":"Daugavpils Clay Art Centre","lat":"0.0000000","lng":"0.0000000","url":"https://www.allplacestovisit.com/latvia/daugavpils-clay-art-centre/","img":"https://www.allplacestovisit.com/upl/places/2021/daugavpils-clay-art-centre.jpg"},
{"id":"499","act":"n","title":"JuRita Mini Zoo","lat":"55.9523090","lng":"26.6229440","url":"https://www.allplacestovisit.com/latvia/jurita-mini-zoo/","img":"https://www.allplacestovisit.com/upl/places/2021/jurita-mini-zoo.jpg"},
{"id":"500","act":"n","title":"Viski Craftsmen Village","lat":"56.0646080","lng":"26.7553930","url":"https://www.allplacestovisit.com/latvia/viski-craftsmen-village/","img":"https://www.allplacestovisit.com/upl/places/2021/viski-craftsmen-village.jpg"},
{"id":"502","act":"n","title":"Central Beach of Lielais Strop...","lat":"55.9040845","lng":"26.5889691","url":"https://www.allplacestovisit.com/latvia/central-beach-of-lielais-stropu-lake/","img":"https://www.allplacestovisit.com/upl/places/2021/central-beach-of-lielais-stropu-lake.jpg"},
{"id":"503","act":"n","title":"“Pie Komendanta” Museum of...","lat":"55.8850438","lng":"26.4968761","url":"https://www.allplacestovisit.com/latvia/pie-komendanta-museum-of-the-world-war-i/","img":"https://www.allplacestovisit.com/upl/places/2021/pie-komendanta-museum-of-the-world-war-i.jpg"},
{"id":"506","act":"n","title":"Saulkrasti Bicycle Museum","lat":"57.2418245","lng":"24.4011649","url":"https://www.allplacestovisit.com/latvia/saulkrasti-bicycle-museum/","img":"https://www.allplacestovisit.com/upl/places/2021/saulkrasti-bicycle-museum.jpg"},
{"id":"507","act":"n","title":"Rezekne Castle Hill","lat":"56.5028013","lng":"27.3331700","url":"https://www.allplacestovisit.com/latvia/rezekne-castle-hill/","img":"https://www.allplacestovisit.com/upl/places/2021/rezekne-castle-hill.jpg"},
{"id":"508","act":"n","title":"Monument “United for Latvia...","lat":"56.5065475","lng":"27.3308044","url":"https://www.allplacestovisit.com/latvia/monument-united-for-latvia/","img":"https://www.allplacestovisit.com/upl/places/2021/monument-united-for-latvia.jpg"},
{"id":"509","act":"n","title":"Eastern Latvia’s Center of C...","lat":"56.5026890","lng":"27.3331449","url":"https://www.allplacestovisit.com/latvia/eastern-latvias-center-of-creative-services-zeimus/","img":"https://www.allplacestovisit.com/upl/places/2021/eastern-latvias-center-of-creative-services-zeimus.jpg"},
{"id":"510","act":"n","title":"Rezekne Green Synagogue","lat":"56.5002125","lng":"27.3346035","url":"https://www.allplacestovisit.com/latvia/rezekne-green-synagogue/","img":"https://www.allplacestovisit.com/upl/places/2021/rezekne-green-synagogue.jpg"},
{"id":"511","act":"n","title":"Rezekne Cathedral of the Sacre...","lat":"56.4988862","lng":"27.3395890","url":"https://www.allplacestovisit.com/latvia/rezekne-cathedral-of-the-sacred-heart-of-jesus/","img":"https://www.allplacestovisit.com/upl/places/2021/rezekne-cathedral-of-the-sacred-heart-of-jesus.jpg"},
{"id":"512","act":"n","title":"Olympic Center "Rezekne&q...","lat":"56.5150049","lng":"27.3512981","url":"https://www.allplacestovisit.com/latvia/olympic-center-rezekne/","img":"https://www.allplacestovisit.com/upl/places/2021/olympic-center-rezekne.jpg"},
{"id":"513","act":"n","title":"Deer garden “Mežsētas”","lat":"57.0154179","lng":"26.8726912","url":"https://www.allplacestovisit.com/latvia/deer-garden-mezstas/","img":"https://www.allplacestovisit.com/upl/places/2021/deer-garden-mezstas.jpg"},
{"id":"514","act":"n","title":"Luznava Manor","lat":"56.3578823","lng":"27.2603614","url":"https://www.allplacestovisit.com/latvia/luznava-manor/","img":"https://www.allplacestovisit.com/upl/places/2021/luznava-manor.jpg"},
{"id":"515","act":"n","title":"Dolomite quarry “Pērtnieki...","lat":"56.5789784","lng":"27.0365347","url":"https://www.allplacestovisit.com/latvia/dolomite-quarry-prtnieki/","img":"https://www.allplacestovisit.com/upl/places/2021/dolomite-quarry-prtnieki.jpg"},
{"id":"516","act":"n","title":" Saulkrasti Beach","lat":"57.2666228","lng":"24.4100969","url":"https://www.allplacestovisit.com/latvia/-saulkrasti-beach/","img":"https://www.allplacestovisit.com/upl/places/2021/-saulkrasti-beach.jpg"},
{"id":"517","act":"n","title":"Sunset Trail","lat":"57.2353938","lng":"24.3915914","url":"https://www.allplacestovisit.com/latvia/sunset-trail/","img":"https://www.allplacestovisit.com/upl/places/2021/sunset-trail.jpg"},
{"id":"521","act":"n","title":"Durbe Manor","lat":"56.9668137","lng":"23.1931033","url":"https://www.allplacestovisit.com/latvia/durbe-manor/","img":"https://www.allplacestovisit.com/upl/places/2021/durbe-manor.jpg"},
{"id":"522","act":"n","title":"Jaunmoku Manor","lat":"56.9815898","lng":"23.0542860","url":"https://www.allplacestovisit.com/latvia/jaunmoku-manor/","img":"https://www.allplacestovisit.com/upl/places/2021/jaunmoku-manor.jpg"},
{"id":"523","act":"n","title":"Kukši Manor","lat":"56.9774650","lng":"22.8582450","url":"https://www.allplacestovisit.com/latvia/kuksi-manor/","img":"https://www.allplacestovisit.com/upl/places/2021/kuksi-manor.jpg"},
{"id":"524","act":"n","title":"Rūmene Manor","lat":"57.0591780","lng":"22.7272580","url":"https://www.allplacestovisit.com/latvia/rumene-manor/","img":"https://www.allplacestovisit.com/upl/places/2021/rumene-manor.jpg"},
{"id":"525","act":"n","title":"Pedvale Art Park","lat":"57.0337750","lng":"22.5664000","url":"https://www.allplacestovisit.com/latvia/pedvale-art-park/","img":"https://www.allplacestovisit.com/upl/places/2021/pedvale-art-park.jpg"},
{"id":"526","act":"n","title":"Abava Rumba Waterfall","lat":"57.0707289","lng":"22.5269091","url":"https://www.allplacestovisit.com/latvia/abava-rumba-waterfall/","img":"https://www.allplacestovisit.com/upl/places/2021/abava-rumba-waterfall.jpg"},
{"id":"527","act":"n","title":"Sabile Town","lat":"57.0484223","lng":"22.5676003","url":"https://www.allplacestovisit.com/latvia/sabile-town/","img":"https://www.allplacestovisit.com/upl/places/2021/sabile-town527.jpg"},
{"id":"528","act":"n","title":"Wooden Toy Museum, Sabile","lat":"57.0462747","lng":"22.5742951","url":"https://www.allplacestovisit.com/latvia/wooden-toy-museum/","img":"https://www.allplacestovisit.com/upl/places/2021/wooden-toy-museum.jpg"},
{"id":"529","act":"n","title":"Cape Kolka","lat":"57.7585950","lng":"22.6039140","url":"https://www.allplacestovisit.com/latvia/cape-kolka/","img":"https://www.allplacestovisit.com/upl/places/2021/cape-kolka.jpg"},
{"id":"530","act":"n","title":"Dundaga Castle","lat":"57.5104539","lng":"22.3561009","url":"https://www.allplacestovisit.com/latvia/dundaga-castle/","img":"https://www.allplacestovisit.com/upl/places/2021/dundaga-castle.jpg"},
{"id":"531","act":"n","title":"Laumas Nature Park","lat":"57.3714670","lng":"22.5275320","url":"https://www.allplacestovisit.com/latvia/laumas-nature-park/","img":"https://www.allplacestovisit.com/upl/places/2021/laumas-nature-park531.jpg"},
{"id":"532","act":"n","title":"Stiklu Bog Nature Trail","lat":"57.3464290","lng":"22.1579990","url":"https://www.allplacestovisit.com/latvia/stiklu-bog-nature-trail/","img":"https://www.allplacestovisit.com/upl/places/2021/stiklu-bog-nature-trail.jpg"},
{"id":"533","act":"n","title":"Ventspils International Radio ...","lat":"57.5535160","lng":"21.8547020","url":"https://www.allplacestovisit.com/latvia/ventspils-international-radio-astronomy-center/","img":"https://www.allplacestovisit.com/upl/places/2021/ventspils-international-radio-astronomy-center533.jpg"},
{"id":"534","act":"n","title":"Ventspils Livonian Order Castl...","lat":"57.3961660","lng":"21.5587390","url":"https://www.allplacestovisit.com/latvia/ventspils-livonian-order-castle/","img":"https://www.allplacestovisit.com/upl/places/2021/ventspils-livonian-order-castle.jpg"},
{"id":"535","act":"n","title":"Beach Waterpark of Ventspils","lat":"57.3904570","lng":"21.5344050","url":"https://www.allplacestovisit.com/latvia/beach-waterpark-of-ventspils/","img":"https://www.allplacestovisit.com/upl/places/2021/beach-waterpark-of-ventspils.jpg"},
{"id":"369","act":"n","title":"Riga Motor Museum","lat":"56.9705050","lng":"24.2275470","url":"https://www.allplacestovisit.com/latvia/riga/riga-motor-museum/","img":"https://www.allplacestovisit.com/upl/places/2019/riga-motor-museum.jpg"},
{"id":"519","act":"n","title":"Great Ķemeri Bog trail","lat":"56.9179405","lng":"23.4676017","url":"https://www.allplacestovisit.com/latvia/jurmala/great-emeri-bog-trail/","img":"https://www.allplacestovisit.com/upl/places/2021/great-emeri-bog-trail.jpg"},
{"id":"520","act":"n","title":"Lake Kaņieris trail","lat":"57.0017206","lng":"23.4741435","url":"https://www.allplacestovisit.com/latvia/jurmala/lake-kaieris-trail/","img":"https://www.allplacestovisit.com/upl/places/2021/lake-kaieris-trail.jpg"},
];
var iw=null;
$(function() {
var map_center=new google.maps.LatLng(56.8043940,25.1139390);
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 +'
';}
});
});
}