// map markers var map; var markers = []; // main markers markers[1] = []; markers[2] = []; markers[3] = []; markers[4] = []; markers[5] = []; markers[6] = []; markers[7] = []; markers[8] = []; markers[9] = []; markers[10] = []; var cur_type = new Array(); cur_type = {0:false,1:false,2:false,3:false,4:false,5:false,6:false,7:false,8:false,9:false,10:false}; var markers_list = []; var markers_source = []; var markers_id = []; var markers_xy = []; var markers_pcs = []; var markers_title = []; var markers_text = []; var topRight; var bottomLeft; var scale; var detailShow = false; var marker_box_x = 12; // default right margin of overlay from marker var image1,image2,image3,image4,image5,image6,image7,image8,image9,image10; // markers in arrays markers_source[1] = [50.4672,15.1768,6]; markers_pcs[1] = 'data/img/4/s-p1010342.jpg'; markers_title[1] = 'Městské informační centrum Sobotka'; markers_id[1] = '157'; markers_source[2] = [50.6034,15.3349,6]; markers_pcs[2] = 'data/img/4/s-tic_v_muzeu_2.jpg'; markers_title[2] = 'TIC Semily'; markers_id[2] = '156'; markers_source[3] = [50.4122,14.9057,6]; markers_pcs[3] = 'data/img/4/s-dsc06073.jpg'; markers_title[3] = 'Informační centrum Mladá Boleslav'; markers_id[3] = '155'; markers_source[4] = [50.531,15.3722,6]; markers_pcs[4] = 'data/img/4/s-icko_dsc5944.jpg'; markers_title[4] = 'TIC Lomnice nad Popelkou'; markers_id[4] = '154'; markers_source[5] = [50.4366,15.3517,6]; markers_pcs[5] = 'data/img/4/s-810_5738kzmj_icko_01.jpg'; markers_title[5] = 'Městské informační centrum Jičín'; markers_id[5] = '153'; markers_source[6] = [,,5]; markers_pcs[6] = 'data/img/4/s-14.png'; markers_title[6] = 'Restaurace a Hotel Štekl'; markers_id[6] = '152'; markers_source[7] = [50.4907,15.1355,5]; markers_pcs[7] = 'data/img/4/s-dscf8788.jpg'; markers_title[7] = 'Restaurace U Draka'; markers_id[7] = '151'; markers_source[8] = [50.5924,15.1624,5]; markers_pcs[8] = 'data/img/3/s-15-1.jpg'; markers_title[8] = 'BBejby - zahradní restaurace'; markers_id[8] = '150'; markers_source[9] = [50.5324,15.032,2]; markers_pcs[9] = 'data/img/3/s-pict0084.jpg'; markers_title[9] = 'Drábské světničky'; markers_id[9] = '149'; markers_source[10] = [50.6602,15.1649,3]; markers_pcs[10] = 'data/img/3/s-cl004964.jpg'; markers_title[10] = 'Rozhledna Kopanina'; markers_id[10] = '148'; markers_source[11] = [50.5841,15.2227,3]; markers_pcs[11] = 'data/img/3/s-cl000846.jpg'; markers_title[11] = 'Rozhledna Dubecko'; markers_id[11] = '147'; markers_source[12] = [50.6127,15.3603,3]; markers_pcs[12] = 'data/img/3/s-rozhledna_jary_cimrmana.jpg'; markers_title[12] = 'Nejnižší rozhledna Járy Cimrmana'; markers_id[12] = '146'; markers_source[13] = [50.4367,15.3534,3]; markers_pcs[13] = 'data/img/3/s-ch000406.jpg'; markers_title[13] = 'Valdická brána'; markers_id[13] = '145'; markers_source[14] = [50.4452,15.3602,3]; markers_pcs[14] = 'data/img/3/s-161-milohlidka.jpg'; markers_title[14] = 'Rozhledna Milohlídka - Čeřovka'; markers_id[14] = '144'; markers_source[15] = [50.5484,15.1937,3]; markers_pcs[15] = 'data/img/3/s-marianska_vyhlidka.jpg'; markers_title[15] = 'Mariánská vyhlídka'; markers_id[15] = '143'; markers_source[16] = [50.5032,15.3642,3]; markers_pcs[16] = 'data/img/3/s-la_img_6458-pano_n.jpg'; markers_title[16] = 'Alainova věž'; markers_id[16] = '142'; markers_source[17] = [50.4828,15.0859,3]; markers_pcs[17] = 'data/img/3/s-rozhledna_cizovka_(27).jpg'; markers_title[17] = 'Rozhledna Čížovka'; markers_id[17] = '141'; markers_source[18] = [50.3867,15.2138,2]; markers_pcs[18] = 'data/img/3/s-letecky_pohled_na_stare_hrady.jpg'; markers_title[18] = 'Hrad a zámek Staré Hrady'; markers_id[18] = '140'; markers_source[19] = [50.4709,15.1698,2]; markers_pcs[19] = 'data/img/3/s-03_kralovehradecky_kraj_2017_humprecht_exterier.jpg'; markers_title[19] = 'Zámek Humprecht'; markers_id[19] = '139'; markers_source[20] = [50.5633,15.1678,2]; markers_pcs[20] = 'data/img/3/s-2013-06-13-csa16976.jpg'; markers_title[20] = 'Hrad Valdštejn'; markers_id[20] = '138'; markers_source[21] = [50.4849,15.1357,10]; markers_pcs[21] = 'data/img/3/s-img_1328.jpg'; markers_title[21] = 'Údolí Plakánek'; markers_id[21] = '137'; markers_source[22] = [50.5948,15.2243,2]; markers_pcs[22] = 'data/img/3/s-d128-04.jpg'; markers_title[22] = 'Zřícenina hradu Rotštejn'; markers_id[22] = '136'; markers_source[23] = [50.5109,15.0263,2]; markers_pcs[23] = 'data/img/3/s-file.jpg'; markers_title[23] = 'Zřícenina hradu Valečov'; markers_id[23] = '135'; markers_source[24] = [50.6489,15.1688,2]; markers_pcs[24] = 'data/img/3/s-frydstejn_2_img_6966.jpg'; markers_title[24] = 'Zřícenina hradu Frýdštejn'; markers_id[24] = '134'; markers_source[25] = [50.6045,15.3312,10]; markers_pcs[25] = 'data/img/3/s-2013-06-16-csa19383_tonemapping.jpg'; markers_title[25] = 'Riegrova stezka'; markers_id[25] = '133'; markers_source[26] = [50.4746,15.3048,1]; markers_pcs[26] = 'data/img/3/s-jinolicki_rybniky.jpg'; markers_title[26] = 'Jinolické rybníky'; markers_id[26] = '132'; markers_source[27] = [50.6377,15.2095,1]; markers_pcs[27] = 'data/img/3/s-suche_skaly_6.jpg'; markers_title[27] = 'Suché skály'; markers_id[27] = '130'; markers_source[28] = [50.5237,15.0615,1]; markers_pcs[28] = 'data/img/3/s-img_1904.jpg'; markers_title[28] = 'Příhrazské skály'; markers_id[28] = '129'; markers_source[29] = [50.6463,15.1954,1]; markers_pcs[29] = 'data/img/3/s-cl004362.jpg'; markers_title[29] = 'Maloskalsko'; markers_id[29] = '128'; markers_source[30] = [50.55,15.1896,1]; markers_pcs[30] = 'data/img/3/s-cl002663.jpg'; markers_title[30] = 'Hruboskalsko'; markers_id[30] = '127'; markers_source[31] = [50.5975,15.2222,1]; markers_pcs[31] = 'data/img/3/s-cl001614.jpg'; markers_title[31] = 'Klokočské skály'; markers_id[31] = '126'; markers_source[32] = [50.5944,15.265,1]; markers_pcs[32] = 'data/img/3/s-f_122014.jpg'; markers_title[32] = 'Drábovna na Kozákově'; markers_id[32] = '125'; markers_source[33] = [50.5867,15.1573,1]; markers_pcs[33] = 'data/img/3/s-geopark.jpg'; markers_title[33] = 'Geopark Český ráj'; markers_id[33] = '124'; markers_source[34] = [51.0109,14.3593,6]; markers_pcs[34] = 'data/img/3/s-misto-informacni-centrum-lipova-1.jpg'; markers_title[34] = 'Informační centrum Lipová'; markers_id[34] = '123'; markers_source[35] = [50.757,14.5548,6]; markers_pcs[35] = 'data/img/3/s-turisticke-informacni-centrum-sklarske-muzeum-novy-bor.jpg'; markers_title[35] = 'Turistické informační centrum Nový Bor'; markers_id[35] = '122'; markers_source[36] = [51.0047,14.4553,6]; markers_pcs[36] = 'data/img/3/s-sluknov-informacni_-centrum-1.jpg'; markers_title[36] = 'Regionální informační centrum Šluknov'; markers_id[36] = '121'; markers_source[37] = [50.8728,14.4471,6]; markers_pcs[37] = 'data/img/3/s-is_saula.jpg'; markers_title[37] = 'Informační centrum Dolní Chřibská'; markers_id[37] = '120'; markers_source[38] = [50.8514,14.3815,6]; markers_pcs[38] = 'data/img/3/s-20170629_151115.jpg'; markers_title[38] = 'Informační centrum Jetřichovice'; markers_id[38] = '119'; markers_source[39] = [50.8603,14.2651,5]; markers_pcs[39] = 'data/img/3/s-hotel_exteriery_foto-novak_2420.jpg'; markers_title[39] = 'Hotel U Zeleného stromu'; markers_id[39] = '118'; markers_source[40] = [50.9199,14.6036,5]; markers_pcs[40] = 'data/img/3/s-pivovar-kocour-1.jpg'; markers_title[40] = 'Pivovarská restaurace Kocour'; markers_id[40] = '117'; markers_source[41] = [50.7364,14.6379,5]; markers_pcs[41] = 'data/img/3/s-ajeto1.jpg'; markers_title[41] = 'Sklářská krčma Ajeto Lindava'; markers_id[41] = '116'; markers_source[42] = [50.9076,14.4896,5]; markers_pcs[42] = 'data/img/3/s-lb_1.png'; markers_title[42] = 'Luční samoobslužný bar'; markers_id[42] = '115'; markers_source[43] = [50.8685,14.2964,5]; markers_pcs[43] = 'data/img/3/s-02.jpg'; markers_title[43] = 'Penzion Na Vyhlídce'; markers_id[43] = '114'; markers_source[44] = [50.852,14.4211,5]; markers_pcs[44] = 'data/img/3/s-01.jpg'; markers_title[44] = 'Hotel Zámeček'; markers_id[44] = '113'; markers_source[45] = [50.889,14.4575,5]; markers_pcs[45] = 'data/img/3/s-23.jpg.jpg'; markers_title[45] = 'Restaurant Stará hospoda'; markers_id[45] = '112'; markers_source[46] = [50.7811,14.2712,3]; markers_pcs[46] = 'data/img/3/s-11_rozhledna_sokoli_vrch_u_decina,_foto_j._lastuvka.jpg'; markers_title[46] = 'Rozhledna Sokolí vrch'; markers_id[46] = '111'; markers_source[47] = [50.9397,14.4653,3]; markers_pcs[47] = 'data/img/3/s-09_rozhledna_vlci_hora_u_krasne_lipy,_foto_j._lastuvka.jpg'; markers_title[47] = 'Rozhledna Vlčí hora'; markers_id[47] = '110'; markers_source[48] = [50.7477,14.2283,3]; markers_pcs[48] = 'data/img/3/s-chlum.jpg'; markers_title[48] = 'Rozhledna Velký Chlum'; markers_id[48] = '109'; markers_source[49] = [50.9667,14.32,3]; markers_pcs[49] = 'data/img/3/s-18_rozhledna_tanecnice_u_mikulasovic,_foto_t._fusek.jpg'; markers_title[49] = 'Rozhledna Tanečnice'; markers_id[49] = '108'; markers_source[50] = [50.8611,14.27,3]; markers_pcs[50] = 'data/img/3/s-janov-p7.jpg'; markers_title[50] = 'Rozhledna Janov'; markers_id[50] = '107'; markers_source[51] = [50.9422,14.525,3]; markers_pcs[51] = 'data/img/3/s-109_rumburk.jpg'; markers_title[51] = 'Dymník'; markers_id[51] = '106'; markers_source[52] = [50.8568,14.5597,3]; markers_pcs[52] = 'data/img/3/s-04c__rozhledna_jedlova,_foto_j._krejci.jpg'; markers_title[52] = 'Rozhledna Jedlová'; markers_id[52] = '105'; markers_source[53] = [50.7702,14.4852,1]; markers_pcs[53] = 'data/img/3/s-titulka_-_panska_skala_(zp).jpg'; markers_title[53] = 'Panská skála'; markers_id[53] = '104'; markers_source[54] = [50.8389,14.374,2]; markers_pcs[54] = 'data/img/3/s-skalni_kaple_sv._ingnace,_vsemily_(2).jpg'; markers_title[54] = 'Skalní kaple sv. Ignáce'; markers_id[54] = '103'; markers_source[55] = [50.8328,14.3311,3]; markers_pcs[55] = 'data/img/3/s-_aaa6730.jpg'; markers_title[55] = 'Rozhledna Rúženka'; markers_id[55] = '102'; markers_source[56] = [50.893,14.3454,2]; markers_pcs[56] = 'data/img/3/s-rysi-kamen-576[1].jpg'; markers_title[56] = 'Rysí kámen'; markers_id[56] = '101'; markers_source[57] = [50.7918,14.4335,2]; markers_pcs[57] = 'data/img/3/s-foto_4_b.jpg'; markers_title[57] = 'Zámecký vrch u České Kamenice'; markers_id[57] = '100'; markers_source[58] = [50.9514,14.5541,2]; markers_pcs[58] = 'data/img/3/s-loreta_rumburk_loretanska_kaple_s_ambitem_20_7_2016_foto_jiri_stejskal.jpg'; markers_title[58] = 'Loretánská kaple v Rumburku'; markers_id[58] = '99'; markers_source[59] = [51.0479,14.0839,2]; markers_pcs[59] = 'data/img/3/s-26_hrad_stolpen,_foto_d._berthold.jpg'; markers_title[59] = 'Hrad Stolpen'; markers_id[59] = '98'; markers_source[60] = [50.9191,14.0573,2]; markers_pcs[60] = 'data/img/3/s-01_pevnost_konigstein__(5).jpg'; markers_title[60] = 'Pevnost Königstein'; markers_id[60] = '97'; markers_source[61] = [50.7424,14.3118,2]; markers_pcs[61] = 'data/img/3/s-dolni_zamek_-_npu_usti_nl..jpg'; markers_title[61] = 'Zámek Benešov nad Ploučnicí'; markers_id[61] = '96'; markers_source[62] = [50.9257,14.4306,1]; markers_pcs[62] = 'data/img/3/s-brtnicke_ledopady_-d.s._(1).jpg'; markers_title[62] = 'Brtnické ledopády'; markers_id[62] = '95'; markers_source[63] = [50.9131,14.457,1]; markers_pcs[63] = 'data/img/3/s-05_kyjovske_skalni_mesto.jpg'; markers_title[63] = 'Kyjovské údolí se skalní stezkou'; markers_id[63] = '94'; markers_source[64] = [50.8489,14.3477,10]; markers_pcs[64] = 'data/img/3/s-titulka.jpg'; markers_title[64] = 'Dolský mlýn'; markers_id[64] = '93'; markers_source[65] = [50.8689,14.352,2]; markers_pcs[65] = 'data/img/3/s-skalni_hrad_saunstejn__u_vysoke_lipy,_foto_j._lastuvka_(5).jpg'; markers_title[65] = 'Šaunštejn'; markers_id[65] = '92'; markers_source[66] = [50.9125,14.2045,1]; markers_pcs[66] = 'data/img/3/s-11_schrammsteiny_-_saske_svycarsko,_foto_m._rak.jpg'; markers_title[66] = 'Schrammsteine'; markers_id[66] = '91'; markers_source[67] = [50.9259,14.2568,1]; markers_pcs[67] = 'data/img/3/s-16_kuhstall_(4).jpg'; markers_title[67] = 'Kuhstall'; markers_id[67] = '90'; markers_source[68] = [50.6178,16.1199,4]; markers_pcs[68] = 'data/img/3/s-15.jpg'; markers_title[68] = 'Apartmány pod Křížovým vrchem'; markers_id[68] = '89'; markers_source[69] = [50.4976,16.2935,4]; markers_pcs[69] = 'data/img/3/s-13558800_1256664981017991_4499391360134490214_o.jpg'; markers_title[69] = 'Pension U Lidmanů'; markers_id[69] = '88'; markers_source[70] = [50.5833,16.3296,4]; markers_pcs[70] = 'data/img/3/s-9.jpg'; markers_title[70] = 'Hotel Veba'; markers_id[70] = '87'; markers_source[71] = [50.6042,16.2887,4]; markers_pcs[71] = 'data/img/3/s-statek.jpg'; markers_title[71] = 'Penzion Jízdárna Hejtmánkovice'; markers_id[71] = '86'; markers_source[72] = [50.6169,16.1268,4]; markers_pcs[72] = 'data/img/3/s-1-1.jpg'; markers_title[72] = 'Hotel Javor'; markers_id[72] = '85'; markers_source[73] = [50.5722,16.1388,4]; markers_pcs[73] = 'data/img/3/s-13.jpg'; markers_title[73] = 'Zámeček Bischofstein'; markers_id[73] = '84'; markers_source[74] = [50.5216,16.2851,4]; markers_pcs[74] = 'data/img/3/s-exterier_1.jpg'; markers_title[74] = 'Bělský Dvůr'; markers_id[74] = '83'; markers_source[75] = [50.5311,15.2193,4]; markers_pcs[75] = 'data/img/3/s-detske-hriste-3.jpg'; markers_title[75] = 'Penzion Amulet'; markers_id[75] = '82'; markers_source[76] = [50.5581,15.2693,4]; markers_pcs[76] = 'data/img/3/s-11ch.jpg'; markers_title[76] = 'Chalupa Žernovka'; markers_id[76] = '81'; markers_source[77] = [50.6033,15.1718,4]; markers_pcs[77] = 'data/img/3/s-1.jpg'; markers_title[77] = 'Kemp Dolánky'; markers_id[77] = '80'; markers_source[78] = [50.6269,15.1812,4]; markers_pcs[78] = 'data/img/3/s-penzion-a-hospudka-krizky-new.png'; markers_title[78] = 'Penzion a hospůdka Křížky '; markers_id[78] = '79'; markers_source[79] = [50.3654,15.1692,4]; markers_pcs[79] = 'data/img/3/s-str_hotel_(1).jpg'; markers_title[79] = 'Středověký hotel Dětenice'; markers_id[79] = '78'; markers_source[80] = [50.5391,15.1966,4]; markers_pcs[80] = 'data/img/3/s-prim.jpg'; markers_title[80] = 'Hotel Zámek Hrubá skály'; markers_id[80] = '77'; markers_source[81] = [50.508,14.9462,4]; markers_pcs[81] = 'data/img/3/s-ubytovani-zazemi_(4).jpg'; markers_title[81] = 'Farma Ptýrov'; markers_id[81] = '76'; markers_source[82] = [51.0293,14.4502,4]; markers_pcs[82] = 'data/img/3/s-1as6591_92_93_94_951-1200x569.jpg'; markers_title[82] = 'Starý mlýn'; markers_id[82] = '75'; markers_source[83] = [50.8512,14.4758,4]; markers_pcs[83] = 'data/img/3/s-2_0.jpg'; markers_title[83] = 'Rekreační středisko Bajtlich'; markers_id[83] = '74'; markers_source[84] = [50.8525,14.3889,4]; markers_pcs[84] = 'data/img/3/s-0007.jpg'; markers_title[84] = 'Ubytování na Výšinkách'; markers_id[84] = '73'; markers_source[85] = [50.8758,14.5756,4]; markers_pcs[85] = 'data/img/3/s-img_7206.jpg'; markers_title[85] = 'Rustic House Jiřetín pod Jedlovou'; markers_id[85] = '72'; markers_source[86] = [50.8738,14.3169,4]; markers_pcs[86] = 'data/img/3/s-dsc_0516.jpg'; markers_title[86] = 'U Fořta'; markers_id[86] = '71'; markers_source[87] = [50.804,14.046,4]; markers_pcs[87] = 'data/img/3/s-ostrov_3.jpg'; markers_title[87] = 'Wellness hotel Ostrov'; markers_id[87] = '70'; markers_source[88] = [50.9139,14.5076,4]; markers_pcs[88] = 'data/img/3/s-aparthotel-lipa-exterier-rybnik-2013_0-1.jpg'; markers_title[88] = 'Aparthotel Lípa'; markers_id[88] = '69'; markers_source[89] = [50.4132,14.9067,8]; markers_pcs[89] = ''; markers_title[89] = 'Mladá Boleslav'; markers_id[89] = '68'; markers_source[90] = [50.5796,16.3331,2]; markers_pcs[90] = 'data/img/9/s-broumov-dreveny-kostel4.jpg'; markers_title[90] = 'Hřbitovní kostel Panny Marie '; markers_id[90] = '67'; markers_source[91] = [50.5857,16.3318,2]; markers_pcs[91] = 'data/img/9/s-broumovsko-5.jpg'; markers_title[91] = 'Lidová architektura na Broumovsku'; markers_id[91] = '66'; markers_source[92] = [50.5387,16.2356,2]; markers_pcs[92] = 'data/img/9/s-police_nad_metuji_-_kostel.jpg'; markers_title[92] = 'Klášter v Polici nad Metují'; markers_id[92] = '65'; markers_source[93] = [50.5174,16.1791,2]; markers_pcs[93] = 'data/img/9/s-mlyn.jpg'; markers_title[93] = 'Mlýn Dřevíček'; markers_id[93] = '64'; markers_source[94] = [50.661,16.2813,3]; markers_pcs[94] = 'data/img/9/s-c054c467.jpg'; markers_title[94] = 'Ruprechtický Špičák'; markers_id[94] = '63'; markers_source[95] = [50.5498,16.2894,1]; markers_pcs[95] = 'data/img/9/s-broumovske-steny01.jpg'; markers_title[95] = 'Broumovské stěny'; markers_id[95] = '62'; markers_source[96] = [50.6468,15.3388,10]; markers_pcs[96] = 'data/img/9/s-bozkovske_dolomitove_jeskyne_(04).jpg'; markers_title[96] = 'Bozkovské dolomitové jeskyně'; markers_id[96] = '60'; markers_source[97] = [50.779,14.1994,10]; markers_pcs[97] = 'data/img/8/s-zoo_decin0017.jpg'; markers_title[97] = 'Zoologická zahrada Děčín'; markers_id[97] = '59'; markers_source[98] = [50.5478,16.0946,10]; markers_pcs[98] = 'data/img/9/s-dsc_0019.jpg'; markers_title[98] = 'Důl Bohumír'; markers_id[98] = '61'; markers_source[99] = [50.464,15.3082,9]; markers_pcs[99] = 'data/img/8/s-img00003.jpg'; markers_title[99] = 'Prachovské skály'; markers_id[99] = '58'; markers_source[100] = [50.5448,15.2002,9]; markers_pcs[100] = 'data/img/8/s-hruboskalsko,_14.11.2002r.jpg'; markers_title[100] = 'Hruboskalsko'; markers_id[100] = '57'; markers_source[101] = [50.8418,14.2454,9]; markers_pcs[101] = 'data/img/8/s-labe_udoli.jpg'; markers_title[101] = 'Labské pískovce'; markers_id[101] = '56'; markers_source[102] = [50.7876,14.0288,9]; markers_pcs[102] = 'data/img/8/s-tiske-steny01.jpg'; markers_title[102] = 'Tiské stěny'; markers_id[102] = '55'; markers_source[103] = [50.5548,16.287,9]; markers_pcs[103] = 'data/img/8/s-broumovske-steny09.jpg'; markers_title[103] = 'Broumovské stěny'; markers_id[103] = '54'; markers_source[104] = [50.6103,16.1165,9]; markers_pcs[104] = 'data/img/8/s-abfa756a.jpg'; markers_title[104] = 'Adršpašsko-teplické skály'; markers_id[104] = '53'; markers_source[105] = [50.6052,15.3281,8]; markers_pcs[105] = 'data/img/8/s-201203060947_zap_76_2012_semily.jpg'; markers_title[105] = 'Semily'; markers_id[105] = '52'; markers_source[106] = [50.5873,15.1568,8]; markers_pcs[106] = 'data/img/8/s-namesti_ceskeho_raje,_turnov_(2).jpg'; markers_title[106] = 'Turnov'; markers_id[106] = '51'; markers_source[107] = [50.7991,14.4165,8]; markers_pcs[107] = 'data/img/8/s-eska_kamenice_-_square_of_peace.jpg'; markers_title[107] = 'Česká Kamenice'; markers_id[107] = '50'; markers_source[108] = [50.9091,14.5132,8]; markers_pcs[108] = 'data/img/7/s-square_in_krasna_lipa_4.jpg'; markers_title[108] = 'Krásná Lípa'; markers_id[108] = '49'; markers_source[109] = [50.5369,16.2335,8]; markers_pcs[109] = 'data/img/7/s-police_nad_metuji,_radnice.jpg'; markers_title[109] = 'Police nad Metují'; markers_id[109] = '48'; markers_source[110] = [50.5857,16.3318,8]; markers_pcs[110] = 'data/img/7/s-mirove_namesti.jpg'; markers_title[110] = 'Broumov'; markers_id[110] = '47'; markers_source[111] = [50.4681,15.1729,7]; markers_pcs[111] = 'data/img/7/s-fil17503.jpg'; markers_title[111] = 'Horolezecká stěna Sobotka'; markers_id[111] = '46'; markers_source[112] = [50.6419,15.194,7]; markers_pcs[112] = 'data/img/7/s-image-zluta-plovarna-2_1.jpg'; markers_title[112] = 'Žlutá plovárna'; markers_id[112] = '45'; markers_source[113] = [50.7392,14.2997,7]; markers_pcs[113] = 'data/img/7/s-jda5c6a28_koupak.jpg'; markers_title[113] = 'Termální koupaliště Benešov nad Ploučnicí'; markers_id[113] = '44'; markers_source[114] = [50.9104,14.5099,7]; markers_pcs[114] = 'data/img/7/s-full_022dc6_cimg0198.jpg'; markers_title[114] = 'Areál sportu Českého Švýcarska'; markers_id[114] = '43'; markers_source[115] = [50.875,14.5743,6]; markers_pcs[115] = 'data/img/7/s-_dsc4520.jpg'; markers_title[115] = 'Informační centrum Jiřetín pod Jedlovou'; markers_id[115] = '42'; markers_source[116] = [50.6269,15.1812,5]; markers_pcs[116] = 'data/img/7/s-hospudka_2.jpg'; markers_title[116] = 'Hospůdka Křížky'; markers_id[116] = '41'; markers_source[117] = [50.3688,15.1712,5]; markers_pcs[117] = 'data/img/7/s-1492_image.jpg'; markers_title[117] = 'Středověká krčma Dětenice'; markers_id[117] = '40'; markers_source[118] = [50.9127,14.5077,5]; markers_pcs[118] = 'data/img/6/s-lipa-restaur-stara-067a-fin-ret-f.jpg'; markers_title[118] = 'Restaurace Lípa Resort'; markers_id[118] = '39'; markers_source[119] = [50.9509,14.5586,5]; markers_pcs[119] = 'data/img/6/s-r017.jpg'; markers_title[119] = 'Pizzerie & Steakhouse Lužan'; markers_id[119] = '38'; markers_source[120] = [50.6192,16.115,5]; markers_pcs[120] = 'data/img/6/s-12171599_10206220514290975_671030623_o.jpg'; markers_title[120] = 'Café bar Kalírna'; markers_id[120] = '37'; markers_source[121] = [50.6255,15.1612,4]; markers_pcs[121] = 'data/img/6/s-1_profilove_foto_-_statek_ondrikovice.jpg'; markers_title[121] = 'Statek Ondříkovice'; markers_id[121] = '36'; markers_source[122] = [50.5246,14.9463,4]; markers_pcs[122] = 'data/img/6/s-maly-pivovar-exterier_34.jpg'; markers_title[122] = 'Hotel Malý Pivovar'; markers_id[122] = '35'; markers_source[123] = [50.8632,14.4584,4]; markers_pcs[123] = 'data/img/6/s-usedlost-na-stodolci.jpg'; markers_title[123] = 'Penzion Na Stodolci'; markers_id[123] = '34'; markers_source[124] = [50.7897,14.1902,4]; markers_pcs[124] = 'data/img/5/s-hotel_silnice_1000_667px.jpg'; markers_title[124] = 'Wellness Hotel Zlatá Lípa'; markers_id[124] = '33'; markers_source[125] = [50.6193,16.1164,4]; markers_pcs[125] = 'data/img/5/s-v52256_penzion-andrspach-u-bary-a-many-2.jpg'; markers_title[125] = 'Penzion Adršpach'; markers_id[125] = '32'; markers_source[126] = [50.7931,14.1085,3]; markers_pcs[126] = 'data/img/5/s-1280px-decinsky_sneznik_cz_120.jpg'; markers_title[126] = 'Děčínský sněžník'; markers_id[126] = '31'; markers_source[127] = [50.8466,14.8763,2]; markers_pcs[127] = 'data/img/4/s-grabstejn_letecky.jpg'; markers_title[127] = 'Hrad Grabštejn'; markers_id[127] = '30'; markers_source[128] = [50.8494,14.2216,3]; markers_pcs[128] = 'data/img/5/s-kanon_labe_(5).jpg'; markers_title[128] = 'Vyhlídka Belvedér'; markers_id[128] = '29'; markers_source[129] = [50.5697,15.1554,3]; markers_pcs[129] = 'data/img/5/s-hlavatice,_obcerstveni_a_vez.jpg'; markers_title[129] = 'Skalní vyhlídka Hlavatice'; markers_id[129] = '28'; markers_source[130] = [50.5091,15.3685,3]; markers_pcs[130] = 'data/img/3/s-tichankova-rozhledna-na-vrchu-tabor.jpg'; markers_title[130] = 'Rozhledna Tábor'; markers_id[130] = '27'; markers_source[131] = [50.5942,15.2635,3]; markers_pcs[131] = 'data/img/5/s-rozhledna_kozakov.jpg'; markers_title[131] = 'Rozhledna Kozákov'; markers_id[131] = '26'; markers_source[132] = [50.7789,14.2093,2]; markers_pcs[132] = 'data/img/5/s-zamek_decin.jpg'; markers_title[132] = 'Zámek Děčín'; markers_id[132] = '25'; markers_source[133] = [50.5857,16.3318,2]; markers_pcs[133] = 'data/img/5/s-kostel_v_sonove.jpg'; markers_title[133] = 'Broumovská skupina kostlů'; markers_id[133] = '24'; markers_source[134] = [50.6264,15.0893,2]; markers_pcs[134] = 'data/img/4/s-sychrov_letecky.jpg'; markers_title[134] = 'Zámek Sychrov'; markers_id[134] = '23'; markers_source[135] = [50.5166,15.2311,2]; markers_pcs[135] = 'data/img/4/s-burg_trosky.jpg'; markers_title[135] = 'Hrad Trosky'; markers_id[135] = '22'; markers_source[136] = [50.4681,15.2858,1]; markers_pcs[136] = 'data/img/3/s-img_2890_(2).jpg'; markers_title[136] = 'Prachovské skály'; markers_id[136] = '21'; markers_source[137] = [50.7869,14.0261,1]; markers_pcs[137] = 'data/img/4/s-1280px-labske_piskovce-tiske_steny5.jpg'; markers_title[137] = 'Tiské stěny'; markers_id[137] = '20'; markers_source[138] = [50.8737,14.2515,1]; markers_pcs[138] = 'data/img/4/s-edmundsklamm_bei_hrensko_-_panoramio.jpg'; markers_title[138] = 'Hřenské soutěsky na řece Kamenici'; markers_id[138] = '19'; markers_source[139] = [50.9135,14.5074,6]; markers_pcs[139] = 'data/img/2/s-1150a.jpg'; markers_title[139] = 'Informační středisko v Domě Českého Švýcarska'; markers_id[139] = '18'; markers_source[140] = [50.4365,15.352,6]; markers_pcs[140] = 'data/img/2/s-image.ashx.jpg'; markers_title[140] = 'Městské informační centrum Jičín'; markers_id[140] = '17'; markers_source[141] = [50.5874,15.1579,6]; markers_pcs[141] = 'data/img/2/s-dsc_1777.jpg'; markers_title[141] = 'Regionální turistické informační centrum Turnov'; markers_id[141] = '16'; markers_source[142] = [50.5362,16.2337,6]; markers_pcs[142] = 'data/img/2/s-23.jpg'; markers_title[142] = 'Informační centrum Police nad Metují'; markers_id[142] = '15'; markers_source[143] = [50.595,16.17,6]; markers_pcs[143] = 'data/img/2/s-dscn1017.jpg'; markers_title[143] = 'Turistické informační centrum Teplice nad Metují'; markers_id[143] = '14'; markers_source[144] = [50.5955,16.1648,7]; markers_pcs[144] = 'data/img/1/s-image_1304385019.jpg'; markers_title[144] = 'Koupaliště Teplice nad Metují'; markers_id[144] = '13'; markers_source[145] = [50.5956,16.167,7]; markers_pcs[145] = 'data/img/1/s-uvod.jpg'; markers_title[145] = 'Sportcentrum Teplice nad Metují'; markers_id[145] = '12'; markers_source[146] = [50.4904,15.1351,2]; markers_pcs[146] = 'data/img/4/s-kost02.jpg'; markers_title[146] = 'Hrad Kost'; markers_id[146] = '10'; markers_source[147] = [50.587,16.3325,2]; markers_pcs[147] = 'data/img/1/s-img_5102.jpg'; markers_title[147] = 'Broumovský klášter'; markers_id[147] = '9'; markers_source[148] = [50.5861,16.3339,5]; markers_pcs[148] = 'data/img/1/s-img_7328.jpg'; markers_title[148] = 'Café Dientzenhofer'; markers_id[148] = '8'; markers_source[149] = [50.5861,16.3342,4]; markers_pcs[149] = 'data/img/5/s-589b0d544b242ddb42330900.jpg'; markers_title[149] = 'Dům hostů v Broumovském klášteře'; markers_id[149] = '7'; markers_source[150] = [50.5717,16.1405,3]; markers_pcs[150] = 'data/img/2/s-hrad-skaly-6.jpg'; markers_title[150] = 'Zřícenina hradu Skály'; markers_id[150] = '6'; markers_source[151] = [50.5585,16.2059,1]; markers_pcs[151] = 'data/img/4/s-ostas_-_sandstone_formation_in_the_czech_republic_02.jpg'; markers_title[151] = 'Ostaš'; markers_id[151] = '5'; markers_source[152] = [50.5948,16.1481,1]; markers_pcs[152] = 'data/img/2/s-32549zjk.png'; markers_title[152] = 'Teplické skály - vstup'; markers_id[152] = '4'; markers_source[153] = [50.6152,16.1229,1]; markers_pcs[153] = 'data/img/2/s-p1012929.jpg'; markers_title[153] = 'Adršpašské skály - vstup'; markers_id[153] = '3'; markers_source[154] = [50.5745,16.1239,3]; markers_pcs[154] = 'data/img/2/s-jz-20140924-110102.jpg'; markers_title[154] = 'Rozhledna Čáp'; markers_id[154] = '2'; markers_source[155] = [50.8842,14.2816,1]; markers_pcs[155] = 'data/img/2/s-cs-pravcicka-brana.jpg'; markers_title[155] = 'Pravčická brána'; markers_id[155] = '1'; // two corner markers var min_marker = 149; var max_marker = 137; function initialize() { // set map var myLatLng = new google.maps.LatLng(50.579632, 16.268692); var mapOptions = { zoom: 12, center: myLatLng, scrollwheel: false, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById('map'),mapOptions); // auto center & zoom: bounds = new google.maps.LatLngBounds(); // pois markers var anchorTop = 25; var anchorLeft = 25; var originTop = 0; var originLeft = 0; image1 = new google.maps.MarkerImage('images/icon/marker-priroda.png', new google.maps.Size(33, 33), new google.maps.Point(originLeft,originTop), new google.maps.Point(anchorLeft,anchorTop) ); image2 = new google.maps.MarkerImage('images/icon/marker-kultura.png', new google.maps.Size(33, 33), new google.maps.Point(originLeft,originTop), new google.maps.Point(anchorLeft,anchorTop) ); image3 = new google.maps.MarkerImage('images/icon/marker-vyhlidka.png', new google.maps.Size(33, 33), new google.maps.Point(originLeft,originTop), new google.maps.Point(anchorLeft,anchorTop) ); image4 = new google.maps.MarkerImage('images/icon/marker-ubytovani.png', new google.maps.Size(33, 33), new google.maps.Point(originLeft,originTop), new google.maps.Point(anchorLeft,anchorTop) ); image5 = new google.maps.MarkerImage('images/icon/marker-restaurace.png', new google.maps.Size(33, 33), new google.maps.Point(originLeft,originTop), new google.maps.Point(anchorLeft,anchorTop) ); image6 = new google.maps.MarkerImage('images/icon/marker-info.png', new google.maps.Size(33, 33), new google.maps.Point(originLeft,originTop), new google.maps.Point(anchorLeft,anchorTop) ); image7 = new google.maps.MarkerImage('images/icon/marker-sport.png', new google.maps.Size(33, 33), new google.maps.Point(originLeft,originTop), new google.maps.Point(anchorLeft,anchorTop) ); image8 = new google.maps.MarkerImage('images/icon/marker-obec.png', new google.maps.Size(33, 33), new google.maps.Point(originLeft,originTop), new google.maps.Point(anchorLeft,anchorTop) ); image9 = new google.maps.MarkerImage('images/icon/marker-lezeni.png', new google.maps.Size(33, 33), new google.maps.Point(originLeft,originTop), new google.maps.Point(anchorLeft,anchorTop) ); image10 = new google.maps.MarkerImage('images/icon/marker-osatni.png', new google.maps.Size(33, 33), new google.maps.Point(originLeft,originTop), new google.maps.Point(anchorLeft,anchorTop) ); for (var key in markers_source) { addMarker(key,markers_source[key][0],markers_source[key][1],markers_source[key][2]); if (min_marker==key) { loc = new google.maps.LatLng(markers_source[key][0], markers_source[key][1]); bounds.extend(loc); } if (max_marker==key) { loc = new google.maps.LatLng(markers_source[key][0], markers_source[key][1]); bounds.extend(loc); } } // after corner markers added and if they are diferent if (min_marker recalculate position all markers google.maps.event.addListener(map, 'idle', function() { // get map x,y topRight = map.getProjection().fromLatLngToPoint(map.getBounds().getNorthEast()); bottomLeft = map.getProjection().fromLatLngToPoint(map.getBounds().getSouthWest()); scale = Math.pow(2,map.getZoom()); // get marker x,y for (var i = 1; i < markers_list.length; i++) { worldPoint = map.getProjection().fromLatLngToPoint(markers_list[i].getPosition()); markers_xy[i] = new google.maps.Point((worldPoint.x-bottomLeft.x)*scale,(worldPoint.y-topRight.y)*scale); } }); // hide overlay if move map google.maps.event.addListener(map, 'center_changed', function() { $("#overlay").hide(); }); // hide overlay if zoom change google.maps.event.addListener(map, 'zoom_changed', function() { $("#overlay").hide(); }); } // add marker function addMarker(id,lat,lon,poiType) { markers_list[id] = new google.maps.Marker({ position: new google.maps.LatLng(lat,lon,true), map: map, zIndex: parseInt(id), icon: eval('image'+poiType) }); //alert(id); markers[poiType].push(markers_list[id]); var showMarkerBubble = new Function("event", "markerBubble("+id+");"); google.maps.event.addListener(markers_list[id], 'mouseover', showMarkerBubble); google.maps.event.addListener(markers_list[id], 'mouseout', function() { $("#overlay").hide(); }); var showDetailBubble = new Function("event", "detailBubble("+id+");"); google.maps.event.addListener(markers_list[id], 'click', showDetailBubble); } // load poi data by ajax function getPoiDetail(id_poi) { var xmlhttp; if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); } else { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById('detail-box').innerHTML = xmlhttp.responseText; } } xmlhttp.open('GET','ajax/poi-detail.php?id='+id_poi+'&l=cz', true); xmlhttp.send(); } // function for show detail overlay function detailBubble(num) { $("#detail strong").text(markers_title[num]); if (!detailShow || detailShow!=num) { $("#detail").show(); getPoiDetail(markers_id[num]); detailShow = num; } else { $("#detail").hide(); detailShow = false; document.getElementById('detail-box').innerHTML = '
'; } } function clearMapMarkers() { clearMarkers(1); clearMarkers(2); clearMarkers(3); clearMarkers(4); clearMarkers(5); clearMarkers(6); clearMarkers(7); clearMarkers(8); clearMarkers(9); clearMarkers(10); } $(document).ready(function() { $( "#detail-close" ).click(function(e){ e.preventDefault(); $("#detail").hide(); detailShow = false; document.getElementById('detail-box').innerHTML = '
'; }); var t = setTimeout(clearMapMarkers, 500); }); // function for show markers overlay function markerBubble(num) { $("#overlay strong").text(markers_title[num]); $("#overlay div").css("background-image", "url('"+markers_pcs[num]+"')"); if (markers_xy[num].x > ($("#map").width()-237)) { marker_box_x = -237; $("#overlay").css("background-image", "url('images/map-buble-left-bg.png')"); $("#overlay").css("padding-left", "10px"); } else { marker_box_x = 7; $("#overlay").css("background-image", "url('images/map-buble-right-bg.png')"); $("#overlay").css("padding-left", "13px"); } $("#overlay").css({ left:($("#map").position().left + markers_xy[num].x + marker_box_x), top:($("#map").position().top + markers_xy[num].y - 51) }); $("#overlay").show(); } function setMarkersToMap(sendMap,type) { if (!type) { for (var key in markers) { for (var i = 0; i < markers[key].length; i++) { markers[key][i].setMap(sendMap); } } } else { for (var i = 0; i < markers[type].length; i++) { markers[type][i].setMap(sendMap); } } } // hide markers function clearMarkers(type) { //alert(type+" --- "+cur_type[type]); if (!cur_type[type]) { setMarkersToMap(map,type); cur_type[type] = true; $(".map-icon-"+type).css("background-image", "url('images/icon/marker-"+type+".png')"); } else { setMarkersToMap(null,type); cur_type[type] = false; $(".map-icon-"+type).css("background-image", "url('images/icon/marker-"+type+"-off.png')"); } } // shows markers function showOverlays(type) { setMarkersToMap(map,type); } // deletes all markers function deleteMarkers(type) { clearMarkers(type); markers[type] = null; } google.maps.event.addDomListener(window, 'load', initialize);