// window.gmap_hike = window.hikeMap("gmap-hikes", [BASTION_HIKE], hike_options);
const BINOCULAR_PATH =
"m492.68928,152.94378c-0.27408,-0.0877 -142.91455,-34.25959 -226.11328,-54.97979c-16.97083,12.19093 -29.66606,29.84147 -38.04185,59.38694c-5.05397,17.81499 -7.08214,33.34965 -7.20274,45.86948c-10.94114,-2.66403 -21.76169,-5.31709 -32.20949,-7.89341c-0.26311,-15.14 2.65306,-31.14608 7.31237,-47.60164c6.59977,-23.17593 17.31068,-40.9361 36.98939,-59.11286c-13.69287,-3.40951 -28.39435,-7.31237 -28.44916,-7.33429c-6.00776,-1.7212 -24.18453,8.34289 -38.23918,26.9253c-14.78918,-3.67263 -25.12735,-6.24895 -25.1712,-6.25991c-3.81515,-1.08534 -18.74685,8.58408 -23.31845,24.73268c-4.60449,16.15956 2.88329,32.69187 6.67651,33.78818c0.04385,0.01096 9.83387,3.13544 23.89949,7.6303c0.43852,6.7094 1.54579,13.05701 3.01484,18.7907c-16.57616,12.17997 -28.99731,29.73184 -37.24154,58.8059c-11.05077,38.89697 -7.68511,67.05012 -1.43616,76.22621c82.82598,26.46485 222.21043,71.01875 222.4845,71.07357c15.04133,4.29752 36.89072,-26.2127 48.79662,-68.10258c3.89189,-13.73672 6.24895,-27.013 7.10407,-38.77637c33.9307,10.84247 57.90693,18.50566 58.02752,18.52758c15.04133,4.28656 36.90169,-26.23462 48.77469,-68.10258c11.93878,-41.84603 9.39535,-79.3178 -5.65694,-83.59339zm-128.72834,166.12337c-9.03357,31.74904 -25.35758,54.88112 -36.50702,51.72375c-11.13848,-3.15736 -12.87064,-31.44208 -3.859,-63.18016c9.00068,-31.74904 25.35758,-54.88112 36.49605,-51.72375c11.14944,3.16833 12.87064,31.46401 3.86996,63.18016zm117.76528,-89.38189c-9.0226,31.73808 -25.36854,54.88112 -36.49605,51.71279c-11.13848,-3.15736 -12.87064,-31.44208 -3.859,-63.1692c9.00068,-31.74904 25.34661,-54.89208 36.48509,-51.72375c11.14944,3.1464 12.89257,31.42015 3.86996,63.18016zm-362.25266,-52.73236c-13.67095,-3.40951 -28.39435,-7.31237 -28.4382,-7.32333c-6.01872,-1.71024 -24.18453,8.34289 -38.25014,26.93626c-14.76725,-3.67263 -25.12735,-6.25991 -25.14928,-6.27087c-3.82611,-1.08534 -18.74685,8.58408 -23.34037,24.74364c-4.58256,16.15956 2.90521,32.70283 6.69843,33.79914c0.02193,0 9.82291,3.12447 23.88853,7.61933c1.60061,24.65594 12.10323,44.54295 18.33025,46.32993c0.05482,0.01096 10.93018,3.04773 26.48677,8.03593c-7.73993,-22.58392 -4.79086,-48.06209 2.80655,-74.73523c6.56688,-23.17593 17.29972,-40.9361 36.96747,-59.13479z";
const TREES_PATH =
"m387.15613,447.1595l-49.26753,0c-6.03664,0 -10.94834,4.9117 -10.94834,10.94834l0,41.05627c0,6.03664 4.9117,10.94834 10.94834,10.94834l49.26753,0c6.03664,0 10.94834,-4.9117 10.94834,-10.94834l0,-41.05627c0,-6.03664 -4.9117,-10.94834 -10.94834,-10.94834zm-387.15613,-447.1595m487.67831,406.98183l-115.54604,-281.67204c-2.5277,-6.16528 -7.06989,-6.8304 -8.90374,-6.8304c-1.84206,0 -6.40067,0.67195 -8.95027,6.88787l-25.49184,62.19889c-2.11029,5.14435 -2.11029,12.61112 0,17.75684l84.85921,206.85246c2.45927,5.99832 9.09123,10.35029 15.76971,10.35029l47.68549,0c4.16311,0 7.73363,-1.76542 9.79876,-4.84464c2.03776,-3.0368 2.32242,-6.93714 0.7787,-10.69927l0.00002,0zm-487.67831,-406.98183m348.62755,391.63225c2.08429,-3.10796 2.38537,-7.07263 0.82523,-10.87854l-152.49532,-371.89731c-2.53865,-6.18855 -7.08905,-6.8564 -8.927,-6.8564s-6.38836,0.66785 -8.927,6.85777l-152.49395,371.89457c-1.56151,3.80592 -1.26043,7.77058 0.82523,10.87854c2.08429,3.10796 5.63976,4.89117 9.75223,4.89117l301.68698,0c4.11384,0.00137 7.66931,-1.78184 9.7536,-4.8898zm-348.62755,-391.63225m221.56249,432.10553l-67.05858,0c-6.03664,0 -10.94834,4.9117 -10.94834,10.94834l0,56.11024c0,6.03664 4.9117,10.94834 10.94834,10.94834l67.05858,0c6.03664,0 10.94834,-4.9117 10.94834,-10.94834l0,-56.11024c0,-6.03664 -4.9117,-10.94834 -10.94834,-10.94834z";
const PARK_PATH =
"m324.49688,401.82503c-4.37702,-4.3184 -10.28743,-6.73728 -16.42925,-6.73728l-20.69416,0l0,-13.38508l17.37438,0c5.57926,0 10.10437,-4.52408 10.10437,-10.1054l0,-13.21847c0,-5.58029 -4.52511,-10.1054 -10.10437,-10.1054l-17.37438,0l0,-17.29622l17.37438,0c5.57926,0 10.10437,-4.52511 10.10437,-10.1054l0,-13.2195c0,-5.58029 -4.52511,-10.10437 -10.10437,-10.10437l-17.37438,0l0,-13.06935c0,-9.34024 -7.56002,-16.90952 -16.90541,-16.90952s-16.90952,7.56928 -16.90952,16.90952l0,13.06935l-152.18572,0l0,-13.06935c0,-9.34024 -7.56002,-16.90952 -16.90541,-16.90952c-9.34642,0 -16.90952,7.56928 -16.90952,16.90952l0,13.06935l-17.37541,0c-5.57823,0 -10.10334,4.52408 -10.10334,10.10437l0,13.2195c0,5.58029 4.52511,10.1054 10.10334,10.1054l17.37541,0l0,17.29622l-17.37541,0c-5.57823,0 -10.10334,4.52511 -10.10334,10.1054l0,13.21847c0,5.58132 4.52511,10.1054 10.10334,10.1054l17.37541,0l0,13.38508l-20.70753,0c-6.14181,0 -12.05634,2.41888 -16.43233,6.73728l-26.35261,25.9906c-2.90841,2.87448 -3.80007,7.23195 -2.2461,11.03099c1.54985,3.79081 5.25016,6.26625 9.34642,6.26625l22.57106,0l0,42.27278c0,9.33716 7.56311,16.90952 16.90952,16.90952c9.34539,0 16.90952,-7.57237 16.90952,-16.90952l0,-42.27278l219.81662,0l0,42.27278c0,9.33716 7.56311,16.90952 16.90952,16.90952c9.34642,0 16.90952,-7.57237 16.90952,-16.90952l0,-42.27278l22.55563,0c4.09831,0 7.79554,-2.47544 9.35053,-6.26625c1.54985,-3.79801 0.65923,-8.15652 -2.24713,-11.03099l-26.35364,-25.9906zm-223.12406,-70.84887l152.18572,0l0,17.29622l-152.18572,0l0,-17.29622zm0,50.72754l152.18572,0l0,13.38508l-152.18572,0l0,-13.38508zm-2.13092,-379.21886c0,-0.03291 -0.02777,-0.06685 -0.06273,-0.06685l-89.05319,0c-5.58337,0 -10.10951,4.52614 -10.10951,10.10746l0,87.65041c0,0.04834 -0.01645,0.08227 -0.01645,0.16455c0.41446,0 0.82892,0.11621 1.27217,0.11621c54.09567,0 97.96972,-43.85863 97.96972,-97.97178zm-95.78841,125.91024l0,82.59771c0,7.00261 5.68107,12.68266 12.68163,12.68266c7.00158,0 12.68266,-5.68005 12.68266,-12.68266l0,-82.59771c0,-7.00056 -5.68107,-12.6806 -12.68266,-12.6806c-7.00056,0 -12.68163,5.68005 -12.68163,12.6806zm61.77396,-25.84148c-6.05954,3.49976 -8.13903,11.2521 -4.64235,17.32295l41.31839,71.55026c2.34586,4.06952 6.60666,6.34133 10.995,6.34133c2.14737,0 4.32663,-0.54507 6.32487,-1.70103c6.06365,-3.50079 8.14315,-11.25519 4.64235,-17.32295l-41.31839,-71.55026c-3.49771,-6.05131 -11.22639,-8.16474 -17.31987,-4.6403zm40.58923,-18.62804l71.55129,41.31634c1.99722,1.15596 4.17853,1.70103 6.32487,1.70103c4.38936,0 8.64914,-2.27181 10.995,-6.34133c3.50182,-6.06777 1.4213,-13.82011 -4.63824,-17.32295l-71.55232,-41.31531c-6.07496,-3.52547 -13.83862,-1.41924 -17.31987,4.64235c-3.50182,6.06674 -1.4213,13.82011 4.63927,17.31987zm21.20324,-53.71618l82.61416,-0.01645c7.00056,0 12.68266,-5.68005 12.68266,-12.6806c0,-7.00981 -5.6821,-12.68266 -12.68266,-12.68266l-82.61416,0.01748c-7.00056,0 -12.68266,5.68005 -12.68266,12.68163c0,7.00981 5.6821,12.6806 12.68266,12.6806zm324.90722,-28.26139c-21.303,0 -39.69655,26.56241 -48.62851,65.1606c29.65492,10.95694 51.51841,45.6152 53.99591,89.24345c17.08847,9.60147 29.14584,26.49454 33.35625,46.22609c9.69505,-21.28346 15.7042,-50.50335 15.7042,-82.77666c-0.00103,-65.08655 -24.37596,-117.85348 -54.42785,-117.85348zm-16.91055,409.45587c0,5.58029 4.52614,10.10437 10.10437,10.10437l13.60619,0c5.58337,0 10.10849,-4.52408 10.10849,-10.10437l0,-140.45333c-9.41121,8.47944 -20.98727,14.17697 -33.82008,16.06826l0,124.38507l0.00103,0zm5.41779,-244.09487c0.01645,-0.8824 0.18306,-1.71749 0.18306,-2.60914c0,-46.74853 -25.54838,-84.64532 -57.07196,-84.64532c-31.51844,0 -57.06579,37.89679 -57.06579,84.64532c0,10.99088 1.52003,21.41715 4.0942,31.05153c-13.95483,8.8106 -23.11818,23.39175 -23.11818,39.95469c0,26.93162 24.12605,48.77146 53.90027,48.77146c1.302,0 2.50835,-0.32396 3.79595,-0.41446l0,127.34079c0,5.58029 4.52511,10.10437 10.10437,10.10437l29.89043,0c5.57926,0 10.10437,-4.52408 10.10437,-10.10437l0,-141.72345c3.40309,0.84949 6.91725,1.41204 10.5682,1.41204c27.42938,0 49.66928,-23.81958 49.66928,-53.19682c0.00103,-23.8854 -14.80843,-43.86583 -35.0542,-50.58665z";
const SWIM_PATH =
"m131.69976,185.00068c23.91062,0 43.28664,-21.03779 43.28664,-47.00159c0,-25.97096 -19.37602,-47.01794 -43.28664,-47.01794c-23.90244,0 -43.28766,21.04698 -43.28766,47.01794c0,25.96381 19.38522,47.00159 43.28766,47.00159zm-129.64427,-185.00068m41.80372,216.01212l42.67037,20.87733c0,0.14206 -0.04088,0.27798 -0.04088,0.42004l0,93.39407c23.16967,-5.74566 48.28113,0 67.3945,17.563c6.59801,-6.16672 13.92878,-10.81374 21.6377,-14.28239l0.51917,-50.23621l4.68074,5.52287c2.95459,3.47683 6.89643,5.77325 11.19903,6.51522l66.30914,11.44942c10.62058,1.83244 20.51044,-6.04204 22.18242,-17.48226c1.67812,-11.48315 -5.53104,-22.27133 -16.09439,-24.09355l-59.66923,-10.30581c-36.77141,-43.30912 -6.72371,-8.02573 -43.55031,-51.29908c-3.29083,-3.86928 -7.93989,-7.2296 -21.86254,-7.2296l-15.47506,0c-5.84275,0 -11.29714,1.59125 -16.21703,4.18201l-40.62332,-19.87782l-27.48045,-75.02779c-3.94899,-10.78614 -15.19606,-16.09541 -25.16869,-11.7693c-9.93891,4.28932 -14.79339,16.53385 -10.83724,27.33839l30.37883,82.93906c1.85901,5.07523 5.45541,9.15811 10.04724,11.40241zm-41.80372,-216.01212m358.12474,185.00068c23.91164,0 43.28766,-21.03779 43.28766,-47.00159c0,-25.97096 -19.37602,-47.01794 -43.28766,-47.01794c-23.89324,0 -43.27846,21.04698 -43.27846,47.01794c0.00102,25.96381 19.38624,47.00159 43.27846,47.00159zm-358.12474,-185.00068m260.23899,204.60869c1.85799,5.07523 5.45439,9.15913 10.04622,11.40241l42.66117,20.87733c0,0.14206 -0.0419,0.27798 -0.0419,0.42004l0,91.35724c16.10257,1.49109 31.8178,7.79374 44.233,19.50888c12.58895,-11.86742 28.54332,-18.17926 44.86051,-19.56305l0.4599,-44.87482l4.69812,5.53309c2.95459,3.47683 6.89541,5.77325 11.19903,6.51522c2.45177,0.42106 66.8927,11.71616 69.36899,11.71616c9.3625,0 17.59877,-7.39107 19.11235,-17.749c1.67914,-11.48315 -5.52798,-22.27133 -16.09235,-24.09355l-59.66208,-10.30581c-100.05953,-117.8811 57.25936,67.45888 -43.54827,-51.29908c-3.3082,-3.89687 -7.98281,-7.2296 -21.87071,-7.2296l-15.48426,0c-5.84275,0 -11.29101,1.59125 -16.2109,4.18201l-40.62127,-19.87782l-27.48249,-75.02779c-3.94797,-10.78717 -15.18686,-16.09541 -25.16767,-11.77033c-9.93993,4.28932 -14.79339,16.53385 -10.83622,27.33839l30.37883,82.94008zm-260.23899,-204.60869m473.49786,371.7878c-7.58628,8.25875 -19.87884,8.23218 -27.47227,-0.01737c-20.07711,-21.82472 -55.07843,-21.82472 -75.15451,0.01737c-7.33997,7.97259 -20.12514,7.95419 -27.48147,-0.01737c-19.90235,-21.63872 -55.21742,-21.64485 -75.13816,-0.0092l-0.29433,0.32295c-7.62,7.97974 -19.69795,7.83666 -27.21882,-0.31375c-20.15887,-21.91466 -53.62923,-23.40677 -75.7953,0.70518c-6.92096,7.49838 -19.28608,7.52598 -26.22339,-0.02555c-20.37042,-22.12928 -53.51273,-22.12928 -73.91994,0.01737c-8.317,9.05284 -22.89782,9.06204 -31.23219,-0.0092c-6.58165,-7.15091 -17.25436,-7.14171 -23.83499,-0.00818c-6.5837,7.14886 -6.5837,18.74034 -0.0092,25.89022c10.53984,11.4484 24.55141,17.75718 39.46131,17.75718c14.91603,0 28.92964,-6.3098 39.45313,-17.749c7.24084,-7.86426 19.01423,-7.86426 26.2704,0c19.56713,21.2892 53.61391,22.02095 74.5127,-0.697c7.63533,-8.2935 19.94527,-8.19436 27.52235,0.03679c20.2161,21.9586 53.86021,23.07565 75.10546,0l0.28616,-0.31375c7.28274,-7.61489 20.07813,-7.48101 27.21779,0.26776c20.09346,21.82472 55.07843,21.82472 75.15349,0.0184c7.35735,-7.98894 20.13536,-7.99814 27.49067,-0.0092c20.74243,22.53194 54.41106,22.60246 75.16167,-0.01635c6.57552,-7.1601 6.55815,-18.7526 -0.03168,-25.88307c-6.59903,-7.14886 -17.26253,-7.13149 -23.82886,0.03577z";
const WATER_PATH =
"m -39.42355,256.63632 c 27.42465,0 53.85386,-8.36964 76.04454,-23.57645 2.76368,-1.89398 5.47236,-3.87702 8.09982,-5.98056 2.62485,2.10354 5.33614,4.08659 8.09982,5.98056 22.18806,15.20681 48.61989,23.57645 76.04192,23.57645 27.42203,0 53.85386,-8.36964 76.04454,-23.57645 2.76368,-1.89398 5.47236,-3.87702 8.09982,-5.98056 2.62485,2.10354 5.33614,4.08659 8.09982,5.98056 22.18806,15.20681 48.61989,23.57645 76.04192,23.57645 27.42203,0 53.85386,-8.36964 76.04192,-23.57645 2.76368,-1.89398 5.47236,-3.87702 8.09982,-5.98056 2.62485,2.10354 5.33614,4.08659 8.09982,5.98056 22.19068,15.20681 48.61989,23.57645 76.04454,23.57645 27.42465,0 53.85386,-8.36964 76.04192,-23.57645 2.76368,-1.89398 5.47236,-3.87702 8.09982,-5.98056 2.62485,2.10354 5.33614,4.08659 8.09982,5.98056 22.19068,15.20681 48.61989,23.57645 76.04454,23.57645 13.02206,0 23.57645,-10.55439 23.57645,-23.57645 0,-13.02206 -10.55439,-23.57645 -23.57645,-23.57645 -25.45471,0 -49.61534,-11.08879 -66.28913,-30.4241 -4.47691,-5.19206 -10.99711,-8.18103 -17.85523,-8.18103 -6.85812,0 -13.37571,2.98635 -17.85523,8.18103 -16.66855,19.33269 -40.82918,30.42148 -66.28651,30.42148 -25.45733,0 -49.61534,-11.08879 -66.28913,-30.4241 -4.47691,-5.19206 -10.99711,-8.18103 -17.85523,-8.18103 -6.85813,0 -13.37571,2.98635 -17.85523,8.18103 -16.66855,19.33269 -40.82918,30.42148 -66.28651,30.42148 -25.45733,0 -49.61534,-11.08879 -66.28651,-30.42148 -4.47953,-5.19468 -10.99711,-8.18103 -17.85523,-8.18103 -6.85813,0 -13.37571,2.98635 -17.85523,8.18103 -16.67117,19.33531 -40.8318,30.4241 -66.28913,30.4241 -25.45733,0 -49.61796,-11.08617 -66.28651,-30.41886 -4.47953,-5.19468 -10.99711,-8.18103 -17.85523,-8.18103 -6.85813,0 -13.37571,2.98635 -17.85523,8.18103 -16.67379,19.33531 -40.83442,30.42148 -66.28913,30.42148 -13.02206,0 -23.57645,10.55439 -23.57645,23.57645 0,13.02206 10.55439,23.57645 23.57645,23.57645 z m 725.14179,78.3367 c -25.45471,0 -49.61534,-11.08879 -66.28913,-30.4241 -4.47691,-5.19206 -10.99711,-8.18103 -17.85523,-8.18103 -6.85812,0 -13.37571,2.98635 -17.85523,8.18103 -16.66855,19.33269 -40.82918,30.42148 -66.28651,30.42148 -25.45733,0 -49.61534,-11.08879 -66.28913,-30.4241 -4.47691,-5.19206 -10.99711,-8.18103 -17.85523,-8.18103 -6.85813,0 -13.37571,2.98635 -17.85523,8.18103 -16.66855,19.33269 -40.82918,30.42148 -66.28651,30.42148 -25.45733,0 -49.61534,-11.08879 -66.28651,-30.42148 -4.47953,-5.19468 -10.99711,-8.18103 -17.85523,-8.18103 -6.85813,0 -13.37571,2.98635 -17.85523,8.18103 -16.67117,19.33531 -40.8318,30.4241 -66.28913,30.4241 -25.45733,0 -49.61534,-11.08879 -66.28651,-30.42148 -4.47953,-5.19468 -10.99711,-8.18103 -17.85523,-8.18103 -6.85813,0 -13.37571,2.98635 -17.85523,8.18103 -16.67117,19.33531 -40.8318,30.4241 -66.28651,30.4241 -13.02206,0 -23.57645,10.55439 -23.57645,23.57645 0,13.02206 10.55439,23.57645 23.57645,23.57645 27.42465,0 53.85386,-8.36964 76.04454,-23.57645 2.76368,-1.89398 5.47236,-3.87702 8.09982,-5.98056 2.62485,2.10354 5.33614,4.08659 8.09982,5.98056 22.18806,15.20681 48.61989,23.57645 76.04192,23.57645 27.42203,0 53.85386,-8.36964 76.04454,-23.57645 2.76368,-1.89398 5.47236,-3.87702 8.09982,-5.98056 2.62485,2.10354 5.33614,4.08659 8.09982,5.98056 22.18806,15.20681 48.61989,23.57645 76.04192,23.57645 27.42203,0 53.85386,-8.36964 76.04192,-23.57645 2.76368,-1.89398 5.47236,-3.87702 8.09982,-5.98056 2.62485,2.10354 5.33614,4.08659 8.09982,5.98056 22.19068,15.20681 48.61989,23.57645 76.04454,23.57645 27.42465,0 53.85386,-8.36964 76.04192,-23.57645 2.76368,-1.89398 5.47236,-3.87702 8.09982,-5.98056 2.62485,2.10354 5.33614,4.08659 8.09982,5.98056 22.19068,15.20681 48.61989,23.57645 76.04454,23.57645 13.02206,0 23.57645,-10.55439 23.57645,-23.57645 0,-13.01944 -10.55701,-23.57645 -23.57907,-23.57645 z M 587.05157,460.46 c -25.45471,0 -49.61534,-11.08879 -66.28913,-30.4241 -4.47691,-5.19206 -10.99711,-8.18103 -17.85523,-8.18103 -6.85812,0 -13.37571,2.98635 -17.85523,8.18103 -16.66855,19.33269 -40.82918,30.42148 -66.28651,30.42148 -25.45733,0 -49.61534,-11.08879 -66.28913,-30.4241 -4.47691,-5.19206 -10.99711,-8.18103 -17.85523,-8.18103 -6.85813,0 -13.37571,2.98635 -17.85523,8.18103 -16.66855,19.33269 -40.82918,30.42148 -66.28651,30.42148 -25.45733,0 -49.61534,-11.08879 -66.28651,-30.42148 -4.47953,-5.19468 -10.99711,-8.18103 -17.85523,-8.18103 -6.85813,0 -13.37571,2.98635 -17.85523,8.18103 -16.67117,19.33531 -40.8318,30.4241 -66.28913,30.4241 -25.45733,0 -49.61534,-11.08879 -66.28651,-30.42148 -4.47953,-5.19468 -10.99711,-8.18103 -17.85523,-8.18103 -6.85813,0 -13.37571,2.98635 -17.85523,8.18103 -16.67117,19.33793 -40.8318,30.4241 -66.28651,30.4241 -13.02206,0 -23.57645,10.55439 -23.57645,23.57645 0,13.02206 10.55439,23.57645 23.57645,23.57645 27.42465,0 53.85386,-8.36964 76.04454,-23.57645 2.76368,-1.89398 5.47498,-3.87702 8.09982,-5.98056 2.62485,2.10354 5.33614,4.08659 8.09982,5.98056 22.18806,15.20681 48.61989,23.57645 76.04192,23.57645 27.42203,0 53.85386,-8.36964 76.04454,-23.57645 2.76368,-1.89398 5.47498,-3.87702 8.09982,-5.98056 2.62485,2.10354 5.33614,4.08659 8.09982,5.98056 22.18806,15.20681 48.61989,23.57645 76.04192,23.57645 27.42203,0 53.85386,-8.36964 76.04192,-23.57645 2.76368,-1.89398 5.47236,-3.87702 8.09982,-5.98056 2.62485,2.10354 5.33614,4.08659 8.09982,5.98056 22.18806,15.20681 48.61989,23.57645 76.04454,23.57645 27.42465,0 53.85386,-8.36964 76.04192,-23.57645 2.76368,-1.89398 5.47236,-3.87702 8.09982,-5.98056 2.62485,2.10354 5.33614,4.08659 8.09982,5.98056 22.18806,15.20681 48.61989,23.57645 76.04454,23.57645 13.02206,0 23.57645,-10.55439 23.57645,-23.57645 0,-13.02206 -10.55701,-23.57645 -23.57907,-23.57645 z";
const MOUNTAIN_PATH =
"m 212.5,224.789 -69.68,75.289 37.207,26.803 47.466,-34.195 47.475,34.196 37.207,-26.801 -69.675,-75.28 V 0.603 H 104.54 V 101.86 H 212.5 Z m 120.207,97.476 -57.739,41.588 -47.473,-34.194 -47.468,34.195 L 122.29,322.262 0,454.397 h 455 z";
const MAN_FISH =
"M 87.025,330.166 H 11.606 C 5.199,330.166 0,335.365 0,341.774 v 48.217 c 0,6.411 5.199,11.608 11.606,11.608 h 75.419 c 6.412,0 11.61,-5.197 11.61,-11.608 v -48.217 c 0,-6.409 -5.198,-11.608 -11.61,-11.608 z m 392.822,34.72 c -6.379,-6.378 -16.741,-6.362 -23.087,0.016 -5.328,5.325 -14.588,5.349 -19.962,-0.024 C 425.267,353.35 408.19,349.476 392.771,353 319.761,215.601 320.782,125.128 322.09,105.915 l 10.938,-8.291 c 3.57,-2.727 4.286,-7.846 1.561,-11.441 -2.726,-3.578 -7.845,-4.305 -11.45,-1.569 L 195.405,181.51 c -4.942,-4.806 -12.455,-6.297 -18.878,-2.894 l -41.474,21.958 -31.316,-24.437 c -3.73,-6.999 -9.142,-11.881 -17.221,-15.3 -2.239,-0.947 -9.721,-3.24 -16.997,-1.553 -10.933,2.535 -20.887,9.279 -25.097,20.545 0,0 -28.857,76.792 -38.047,101.554 -7.222,19.46 7.112,37.677 20.586,37.677 0.048,0 0.08,0 0.112,0 l 78.785,-0.374 26.485,66.777 c 3.826,9.607 13.027,15.467 22.768,15.467 3.013,0 6.059,-0.558 9.024,-1.73 12.583,-4.99 18.722,-19.23 13.744,-31.803 l -32.653,-82.316 c -3.702,-9.335 -12.726,-15.458 -22.771,-15.458 -0.032,0 -0.08,0 -0.124,0 l -41.89,0.198 20.427,-54.5 22.419,17.509 c 2.934,2.279 6.472,3.452 10.045,3.452 2.613,0 5.242,-0.622 7.651,-1.897 l 50.818,-26.908 c 3.457,-1.833 5.787,-4.839 7.192,-8.196 l 114.531,-86.869 c -0.924,29.937 4.034,116.016 71.337,243.091 -5.214,2.208 -10.093,5.277 -14.224,9.407 -5.243,5.247 -14.651,5.247 -19.898,0 -17.696,-17.699 -48.488,-17.691 -66.154,-0.023 -5.342,5.332 -14.639,5.316 -19.966,0 -6.375,-6.378 -16.709,-6.378 -23.088,0 -6.375,6.377 -6.375,16.71 0,23.087 18.226,18.241 47.9,18.258 66.143,0 5.327,-5.325 14.619,-5.333 19.977,0.024 8.817,8.827 20.555,13.689 33.038,13.689 12.486,0 24.22,-4.862 33.069,-13.721 5.327,-5.325 14.591,-5.349 19.982,0.024 18.21,18.217 47.864,18.225 66.122,-0.024 6.38,-6.378 6.365,-16.703 -0.015,-23.08 z M 106.162,156.405 c 20.23,0 36.64,-16.407 36.64,-36.649 0,-20.234 -16.409,-36.641 -36.64,-36.641 -20.25,0 -36.643,16.406 -36.643,36.641 10e-4,20.242 16.393,36.649 36.643,36.649 z";
const HIKE_MAN =
"m 386.604,202.858 c 0,-11.185 -9.066,-20.251 -20.253,-20.251 h -68.479 l -38.62,-54.832 0.127,-0.933 c 1.378,-10.474 -1.474,-21.067 -7.911,-29.444 -6.441,-8.378 -15.932,-13.852 -26.408,-15.23 -11.596,-1.511 -22.592,2.224 -30.852,9.225 V 45.779 c 0,-7.847 -6.362,-14.217 -14.225,-14.217 H 140.59 c -7.867,0 -14.225,6.37 -14.225,14.217 v 168.953 c 0,20.68 15.821,37.476 35.979,39.446 l -3.043,7.073 -23.859,90.136 -53.73,72.188 c -8.006,10.768 -5.794,25.987 4.984,34.001 4.348,3.245 9.443,4.811 14.491,4.811 7.422,0 14.729,-3.385 19.511,-9.795 l 56.529,-75.945 c 1.851,-2.484 3.213,-5.299 4.003,-8.289 l 16.266,-61.414 44.521,40.877 -6.076,88.603 c -0.917,13.393 9.177,24.99 22.58,25.908 0.552,0.04 1.124,0.056 1.691,0.056 12.66,0 23.339,-9.819 24.208,-22.642 l 6.882,-100.264 c 0.508,-7.364 -2.371,-14.572 -7.815,-19.564 l -45.994,-42.219 13.992,-90.613 19.331,27.435 c 3.801,5.387 9.972,8.592 16.552,8.592 h 70.882 l 1.339,232.294 c 0,4.478 3.626,8.101 8.101,8.101 4.479,0 8.101,-3.624 8.101,-8.101 l -1.339,-234.036 c 7.136,-3.126 12.152,-10.221 12.152,-18.513 z M 246.413,78.492 c 21.688,0 39.255,-17.573 39.255,-39.251 0,-21.67 -17.567,-39.24 -39.255,-39.24 -21.652,0 -39.242,17.57 -39.242,39.24 0,21.678 17.59,39.251 39.242,39.251 z";
const CAR_PARK =
"m509.70001,286.19093l0,62.36568c0,15.16179 -11.45684,21.27698 -23.60281,21.27698l-52.46025,0c-1.46441,26.61776 -23.60281,47.11947 -50.22143,47.11947c-26.6169,0 -48.75616,-20.50171 -50.99498,-47.11947l-182.62025,0c-1.46441,26.61776 -23.60281,47.11947 -50.22057,47.11947s-47.98089,-20.50171 -50.22057,-47.11947l-27.39304,0c-18.95116,0 -21.96612,-9.04487 -21.96612,-21.19084l0,-60.04071c0,-10.68156 0.77527,-18.26203 6.11606,-28.94359l53.23553,-105.00664c6.11606,-12.92124 21.96612,-23.60281 36.52405,-23.60281l202.34668,0c14.38565,0 28.08217,9.04487 36.52319,23.60281l47.98089,78.30274l96.56563,21.19084c24.98107,3.96338 29.63272,19.1243 30.40799,32.04555zm-381.95198,78.30274c0,-15.16093 -12.14597,-27.30603 -27.3069,-27.30603s-27.3069,12.14597 -27.3069,27.30603c0,15.16179 12.14597,27.3069 27.3069,27.3069s27.3069,-11.97282 27.3069,-27.3069zm54.69993,-203.81109l-74.59865,0c-12.14597,0.77527 -17.48675,5.34078 -24.37808,18.26203l-23.60281,53.23553l122.40725,0l0,-71.49755l0.17228,0zm160.48185,71.41227l-31.95854,-53.23553c-6.11606,-9.90629 -15.16093,-18.26203 -28.94359,-18.26203l-67.70732,0c0,0 0,70.72228 0,71.49755l128.60945,0zm67.79346,132.39882c0,-15.16093 -11.45684,-27.30603 -26.6169,-27.30603c-15.16179,0 -27.3069,12.14597 -27.3069,27.30603c0,15.16179 12.14597,27.3069 27.3069,27.3069c14.38479,0.17228 26.6169,-11.97282 26.6169,-27.3069z";
var BURKE_COLOR = "#060";
var BURKE_HOVER = "#080";
var ALOUETTE_COLOR = "#006";
var ALOUETTE_HOVER = "#008";
var SWAN_COLOR = "#600";
var SWAN_HOVER = "#800";
var BASTION_COLOR = "#606";
var BASTION_HOVER = "#808";
var CAN_MOVE_HIKES = false; /// CANNOT be TRUE, the indexes are not handled leading to unk-unks
var SWAN_STREETVIEW =
"https://www.google.ca/maps/place/Buntzen+Lake/@49.3356061,-122.8560224,3a,75y,19.35h,84.44t/data=!3m7!1e1!3m5!1sR60c4Gjv--BjkYEWc3MM2w!2e0!6s%2F%2Fgeo0.ggpht.com%2Fcbk%3Fpanoid%3DR60c4Gjv--BjkYEWc3MM2w%26output%3Dthumbnail%26cb_client%3Dmaps_sv.tactile.gps%26thumb%3D2%26w%3D203%26h%3D100%26yaw%3D73.829185%26pitch%3D0%26thumbfov%3D100!7i13312!8i6656!4m5!3m4!1s0x54867c6c78e46731:0x3249c68d91b95fd5!8m2!3d49.3506255!4d-122.8598586";
var SWAN_PARKING = {
location_id: "SWAN_PARKING",
lat: 49.33637893455591,
lng: -122.85809945315123,
pin_color: SWAN_COLOR,
hover_color: SWAN_HOVER,
title_text: "Swan Falls Hike Parking",
title_style: "color: ".concat(ALOUETTE_COLOR, "; font-size: 16px; font-weight:bold; "),
marker_svg: CAR_PARK,
can_move: CAN_MOVE_HIKES,
group_type: true,
group_lat: 49.36042241229385,
group_lng: -122.84934472292657,
group_zoom: 13,
order_index: 0,
};
var swan_walk_url = "http://forums.clubtread.com/27-british-columbia/34939-tangled-summit-lindsay-lake-aug-12-2010-a.html";
var SWAN_BIKE = {
location_id: "SWAN_BIKE",
lat: 49.338808405725935,
lng: -122.85463373943537,
marker_svg: HIKE_MAN,
can_move: CAN_MOVE_HIKES,
pin_color: SWAN_COLOR,
title_text: 'Dirt Road'),
content_text: 'Street View'),
disable_auto_pan: true,
order_index: 1,
};
var swan_walk_img = "http://www.clubtread.com/forumPix/265000/265968.jpg";
var SWAN_WALK = {
location_id: "SWAN_WALK",
lat: 49.368904718354486,
lng: -122.8580779954791,
marker_svg: HIKE_MAN,
can_move: CAN_MOVE_HIKES,
pin_color: SWAN_COLOR,
title_text: 'Get Off Dirt Road'),
disable_auto_pan: true,
order_index: 2,
};
var swan_swim_url = "http://www.buntzenlake.ca/swan-falls-loop/#prettyPhoto[1385]/14/";
var SWAN_SWIM = {
location_id: "SWAN_SWIM",
lat: 49.367376531251395,
lng: -122.85191863627165,
marker_svg: SWIM_PATH,
can_move: CAN_MOVE_HIKES,
pin_color: SWAN_COLOR,
title_text: 'Water Fall'),
disable_auto_pan: true,
order_index: 3,
};
var swan_peak_url = "http://fieldandforest.co/adventures/halvorlunden";
var swan_peak_img = "
";
var SWAN_SUMMIT = {
location_id: "SWAN_SUMMIT",
lat: 49.367926602842765,
lng: -122.82982729375362,
marker_svg: MOUNTAIN_PATH,
can_move: CAN_MOVE_HIKES,
pin_color: SWAN_COLOR,
title_text: 'Swan Falls Summit'),
content_text: swan_peak_img,
disable_auto_pan: true,
order_index: 4,
};
var SWAN_HIKE = [SWAN_PARKING, SWAN_BIKE, SWAN_WALK, SWAN_SWIM, SWAN_SUMMIT];
var bastion_streetview =
"https://www.google.ca/maps/@49.3108934,-122.8117843,3a,60y,324.13h,81.44t/data=!3m6!1e1!3m4!1syDCCPi9uoqBH4yoyrGhVLw!2e0!7i13312!8i6656";
var bastion_page = "http://www.buntzenlake.ca/east-bastion-trail-and-white-rock-viewpoint/";
var BASTION_PARKING = {
location_id: "BASTION_PARKING",
lat: 49.31084084797064,
lng: -122.81200837343931,
pin_color: BASTION_COLOR,
hover_color: BASTION_HOVER,
title_text: 'East Bastion Trail'),
content_text: 'Stree View'),
title_style: "color: ".concat(BASTION_COLOR, "; font-size: 16px; font-weight:bold; "),
marker_svg: CAR_PARK,
can_move: CAN_MOVE_HIKES,
group_type: true,
group_lat: 49.33429588090191,
group_lng: -122.80588768422605,
group_zoom: 13,
order_index: 0,
};
var WOOD_PATHS_IMG = "
";
var WOOD_PATHS = {
location_id: "WOOD_PATHS",
lat: 49.31714967936051,
lng: -122.81145952641964,
marker_svg: TREES_PATH,
can_move: CAN_MOVE_HIKES,
pin_color: BASTION_COLOR,
title_text: "Wood bike paths",
content_text: WOOD_PATHS_IMG,
disable_auto_pan: true,
order_index: 1,
};
var FORD_IMG = "images/portage.jpg";
var FORD_STREAM = {
location_id: "FORD_STREAM",
lat: 49.324422717095025,
lng: -122.81592272222042,
can_move: CAN_MOVE_HIKES,
marker_svg: WATER_PATH,
pin_color: BASTION_COLOR,
title_text: "Ford small stream",
content_text: FORD_IMG,
disable_auto_pan: true,
order_index: 2,
};
var CYPRESS_IMG = "
";
var CYPRESS_LAKE_URL = "http://www.trailpeak.com/trail-Cypress-Lake-Coquitlam-near-Coquitlam-BC-5760";
var CYPRESS_LAKE = {
location_id: "CYPRESS_LAKE",
lat: 49.336141236888444,
lng: -122.8173141181469,
marker_svg: SWIM_PATH,
can_move: CAN_MOVE_HIKES,
pin_color: BASTION_COLOR,
title_text: 'Cypress Lake'),
content_text: CYPRESS_IMG,
disable_auto_pan: true,
order_index: 3,
};
var WHITE_ROCK_IMG = "
";
var WHITE_ROCK_URL = "http://www.buntzenlake.ca/east-bastion-trail-and-white-rock-viewpoint/";
var WHITE_ROCK = {
location_id: "WHITE_ROCK",
lat: 49.34374699288048,
lng: -122.82076310366392,
marker_svg: MOUNTAIN_PATH,
can_move: CAN_MOVE_HIKES,
pin_color: BASTION_COLOR,
title_text: 'White Rock Viewpoint'),
content_text: WHITE_ROCK_IMG,
disable_auto_pan: true,
order_index: 4,
};
var WEST_RAMPART_URL = "http://www.buntzenlake.ca/west-rampart-viewpoint/";
var WEST_RAMPART_IMG = "
";
var WEST_RAMPART = {
location_id: "WEST_RAMPART",
lat: 49.34973010706198,
lng: -122.816566452384,
marker_svg: BINOCULAR_PATH,
can_move: CAN_MOVE_HIKES,
pin_color: BASTION_COLOR,
title_text: 'West Rampart Viewpoint'),
content_text: WEST_RAMPART_IMG,
disable_auto_pan: true,
order_index: 5,
};
var BASTION_HIKE = [BASTION_PARKING, WOOD_PATHS, FORD_STREAM, CYPRESS_LAKE, WHITE_ROCK, WEST_RAMPART];
var ALOUETTE_STREETVIEW =
"https://www.google.ca/maps/@49.2755349,-122.5153901,3a,75y,8.66h,79.05t/data=!3m6!1e1!3m4!1sJRq3uqlbQJA-sQ-sm2zkNA!2e0!7i13312!8i6656";
var ALOUETTE_PDF = "http://www.env.gov.bc.ca/bcparks/explore/parkpgs/golden_ears/goldenears.pdf?v=1495820303049";
var ALOUETTE_MOUNTAIN = {
location_id: "ALOUETTE_MOUNTAIN",
lat: 49.27574284899156,
lng: -122.51520585268736,
pin_color: ALOUETTE_COLOR,
hover_color: ALOUETTE_HOVER,
title_text: "Alouette Mountain Hike",
content_text: 'Street view Map'),
title_style: "color: ".concat(ALOUETTE_COLOR, "; font-size: 16px; font-weight:bold; "),
marker_svg: HIKE_MAN,
can_move: CAN_MOVE_HIKES,
group_type: true,
group_lat: 49.327440140182276,
group_lng: -122.49846123126021,
group_zoom: 12,
order_index: 0,
};
var ALOUETTE_PARKING = {
location_id: "ALOUETTE_PARKING",
lat: 49.274636884013546,
lng: -122.52087973058224,
marker_svg: CAR_PARK,
can_move: CAN_MOVE_HIKES,
pin_color: ALOUETTE_COLOR,
disable_auto_pan: true,
order_index: 1,
};
var ALOUETTE_VIEW = "http://forums.clubtread.com/27-british-columbia/4607-alouette-mountain-feb-22-2004-a.html";
var ALOUETTE_LOOKOUT = {
location_id: "ALOUETTE_LOOKOUT",
lat: 49.28843426679796,
lng: -122.5175954796091,
marker_svg: BINOCULAR_PATH,
can_move: CAN_MOVE_HIKES,
pin_color: ALOUETTE_COLOR,
title_text: 'East Lookout',
content_text: 'info'),
disable_auto_pan: true,
order_index: 2,
};
var BEAUTIFUL_IMG = "
";
var BEAUTIFUL_LAKE = {
location_id: "BEAUTIFUL_LAKE",
lat: 49.309791629136406,
lng: -122.51212215051055,
marker_svg: BINOCULAR_PATH,
can_move: CAN_MOVE_HIKES,
pin_color: ALOUETTE_COLOR,
title_text: "Frog Eggs at Lake Beautiful",
content_text: BEAUTIFUL_IMG,
disable_auto_pan: true,
order_index: 3,
};
var ALOUETTE_BRANCH_LEFT = "http://3.bp.blogspot.com/_uP00YGymb-8/SkeXVjxrTSI/AAAAAAAAA8E/tvyc3g-eDEk/s400/all+008b.JPG";
var ALOUETTE_BRANCH = {
location_id: "ALOUETTE_BRANCH",
lat: 49.31204392473146,
lng: -122.50492310151458,
marker_svg: MOUNTAIN_PATH,
can_move: CAN_MOVE_HIKES,
pin_color: ALOUETTE_COLOR,
title_text: 'Branch to Left'),
disable_auto_pan: true,
order_index: 4,
};
var ALOUETTE_TOP_IMG = "
";
var ALOUETTE_TOP_LINK = "https://www.vancouvertrails.com/contest/2013/gallery/photos/20130801_00_29_14_alouettelaketopviewingoldenearsparkjpeg.jpg";
var ALOUETTE_TOP = {
location_id: "ALOUETTE_TOP",
lat: 49.33594548500625,
lng: -122.49753378331661,
marker_svg: MOUNTAIN_PATH,
can_move: CAN_MOVE_HIKES,
pin_color: ALOUETTE_COLOR,
title_text: 'Top of Alouette'),
content_text: ALOUETTE_TOP_IMG,
disable_auto_pan: true,
order_index: 5,
};
var ALOUETTE_HIKE = [ALOUETTE_MOUNTAIN, ALOUETTE_PARKING, ALOUETTE_LOOKOUT, BEAUTIFUL_LAKE, ALOUETTE_BRANCH, ALOUETTE_TOP]; ////////////////////////////////////////////////////////////////////
var STREET_VIEW_QUARRY_ROAD =
"https://www.google.ca/maps/@49.3222685,-122.6884666,3a,75y,324.33h,81.26t/data=!3m6!1e1!3m4!1ss05gUd4rBFGXtSHuQgWiYg!2e0!7i13312!8i6656";
var QUARRY_ROAD_URL = 'Street view');
var BURKE_MOUNTAIN = {
location_id: "BURKE_MOUNTAIN",
lat: 49.32248622909634,
lng: -122.68820262801762,
pin_color: BURKE_COLOR,
hover_color: BURKE_HOVER,
title_text: "Burke Mountain",
content_text: QUARRY_ROAD_URL,
title_style: "color: ".concat(BURKE_COLOR, "; font-size: 16px; font-weight:bold; "),
marker_svg: TREES_PATH,
can_move: CAN_MOVE_HIKES,
group_type: true,
group_lat: 49.3398785307147,
group_lng: -122.69397985157242,
group_zoom: 13,
order_index: 0,
};
var MUNRO_OUTLOOK_URL = "https://www.wanderung.ca/munro-lake-29-mar-2015/";
var MUNRO_OUTLOOK_IMG = "
";
var OUTLOOK_VIEW = {
location_id: "OUTLOOK_VIEW",
lat: 49.3327773014427,
lng: -122.69172269045959,
marker_svg: BINOCULAR_PATH,
can_move: CAN_MOVE_HIKES,
pin_color: BURKE_COLOR,
title_text: '1/2 Way Outlook'),
content_text: MUNRO_OUTLOOK_IMG,
disable_auto_pan: true,
order_index: 1,
};
var MUNRO_SWIM_IMG = "
";
var MUNRO_LAKE = {
location_id: "MUNRO_LAKE",
lat: 49.34536057734585,
lng: -122.67979222476134,
pin_color: BURKE_COLOR,
can_move: CAN_MOVE_HIKES,
marker_svg: SWIM_PATH,
title_text: "Swimming in Munro Lake",
content_text: MUNRO_SWIM_IMG,
disable_auto_pan: true,
order_index: 2,
};
var MUNRO_LAKE_IMG = "
";
var MUNROE_LOOKOUT = {
location_id: "MUNROE_LOOKOUT",
lat: 49.34555039127768,
lng: -122.69482802599669,
pin_color: BURKE_COLOR,
marker_svg: BINOCULAR_PATH,
can_move: CAN_MOVE_HIKES,
title_text: "Munroe Lake Lookout",
content_text: MUNRO_LAKE_IMG,
disable_auto_pan: true,
order_index: 3,
};
var DENNET_LAKE_A_IMG = "
";
var DENNETT_LAKE = {
location_id: "DENNETT_LAKE",
lat: 49.350952111708516,
lng: -122.7028377646173,
pin_color: BURKE_COLOR,
marker_svg: MAN_FISH,
can_move: CAN_MOVE_HIKES,
title_text: "Dennett Lake",
content_text: DENNET_LAKE_A_IMG,
disable_auto_pan: true,
order_index: 4,
};
var BURKE_HIKE = [BURKE_MOUNTAIN, OUTLOOK_VIEW, MUNRO_LAKE, MUNROE_LOOKOUT, DENNETT_LAKE];
var hike_data = { BURKE_HIKE, ALOUETTE_HIKE, SWAN_HIKE, BASTION_HIKE };
var NON_HOVER_OPACITY_HIKE = 0.75;
var NON_HOVER_HIKE = "#ccc";
const burke_hike_options = {
append_to_id: "icon_burke",
marker_icon_title: "Burke Mountian Hike",
main_color: BURKE_HIKE[0].pin_color,
minor_color: NON_HOVER_HIKE,
minor_hover: BURKE_HIKE[0].hover_color,
normal_opacity: NON_HOVER_OPACITY_HIKE,
};
const alloutte_hike_options = {
append_to_id: "icon_alloutte",
marker_icon_title: "Alouette Mountain Hike",
main_color: ALOUETTE_HIKE[0].pin_color,
minor_color: NON_HOVER_HIKE,
minor_hover: ALOUETTE_HIKE[0].hover_color,
normal_opacity: NON_HOVER_OPACITY_HIKE,
};
const swan_hike_options = {
append_to_id: "icon_swan",
marker_icon_title: "Swan Falls Hike",
main_color: SWAN_HIKE[0].pin_color,
minor_color: NON_HOVER_HIKE,
minor_hover: SWAN_HIKE[0].hover_color,
normal_opacity: NON_HOVER_OPACITY_HIKE,
};
const bastion_hike_options = {
append_to_id: "icon_bastion",
marker_icon_title: "Bastion Trail Hike",
main_color: BASTION_HIKE[0].pin_color,
minor_color: NON_HOVER_HIKE,
minor_hover: BASTION_HIKE[0].hover_color,
normal_opacity: NON_HOVER_OPACITY_HIKE,
};
var hike_options = { BURKE: burke_hike_options, ALOUETTE: alloutte_hike_options, SWAN: swan_hike_options, BASTION: bastion_hike_options };
"use strict";
import ReactDOM from "react-dom";
import React from "react";
import { GmapGroups, KmsDistance, SvgButtons } from "gmap-dragdrop-react";
function hikeMap(div_id, hike_data, the_options) {
function drawShapeLine(from_location, to_locations) {
let line_pattern = [];
if (from_location.lat !== undefined) {
line_pattern.push(from_location);
for (let a_to_location of to_locations) {
let order_index = a_to_location.order_index;
line_pattern[order_index] = a_to_location;
}
}
return line_pattern;
}
function getOutingDistanceLine(lat_lng_obj) {
let next_location_id = 0;
const order_index = lat_lng_obj.order_index;
if (order_index > 0) {
const previous_index = order_index - 1;
const next_index = order_index + 1;
var colored_locations = this.filterByPropertyValue("pin_color", lat_lng_obj.pin_color);
for (let location_index in colored_locations) {
let a_location = colored_locations[location_index];
if (previous_index === a_location.order_index) {
lat_lng_obj.extra_text = KmsDistance.getKms(lat_lng_obj, a_location);
} else if (next_index === a_location.order_index) {
next_location_id = a_location.location_id;
}
}
}
return next_location_id;
}
function generateMemberLine() {}
var hike_locations = Object.values(hike_data);
let lat_start = hike_locations[0][0].group_lat;
let lng_start = hike_locations[0][0].group_lng;
let zoom_start = hike_locations[0][0].group_zoom;
var PIN_SVG_NO_HOLE =
"m256,0c-70.703,0 -128,57.313 -128,128c0,51.5 30.563,95.563 74.375,115.875l53.625,268.125l53.625,-268.125c43.813,-20.312 74.375,-64.375 74.375,-115.875c0,-70.687 -57.312,-128 -128,-128z";
const BLUE_WATER = [
{
featureType: "administrative",
elementType: "labels.text.fill",
stylers: [
{
color: "#444444",
},
],
},
{
featureType: "landscape",
elementType: "all",
stylers: [
{
color: "#f2f2f2",
},
],
},
{
featureType: "poi",
elementType: "all",
stylers: [
{
visibility: "off",
},
],
},
{
featureType: "road",
elementType: "all",
stylers: [
{
saturation: -100,
},
{
lightness: 45,
},
],
},
{
featureType: "road.highway",
elementType: "all",
stylers: [
{
visibility: "simplified",
},
],
},
{
featureType: "road.arterial",
elementType: "labels.icon",
stylers: [
{
visibility: "off",
},
],
},
{
featureType: "transit",
elementType: "all",
stylers: [
{
visibility: "off",
},
],
},
{
featureType: "water",
elementType: "all",
stylers: [
{
color: "#46bcec",
},
{
visibility: "on",
},
],
},
];
const hike_options = {
change_rebounding: false,
init_zoom: zoom_start,
pin_scale: 0.05,
pin_svg: PIN_SVG_NO_HOLE,
map_styles: BLUE_WATER,
lat_center: lat_start,
lng_center: lng_start,
};
let gmap_hike = ReactDOM.render(
<GmapGroups google_map_key={GLOBAL_WEBPACK.GOOG_MAP_API} map_locations={hike_locations} map_options={hike_options} />,
document.getElementById("gmap-hikes")
);
gmap_hike.drawShape = drawShapeLine;
gmap_hike.getOutingDistance = getOutingDistanceLine;
gmap_hike.generateMember = generateMemberLine;
function clearHikes() {
gmap_hike.locationsClearAll();
}
var showNumberHikes = function () {
var locations_div = document.getElementById("number-hikes");
var number_locations = gmap_hike.numberLocations();
if (number_locations === 0) {
number_locations = "";
}
locations_div.innerHTML = number_locations + " activities";
};
function reSizeHikes(e_ignored) {
var number_locations = gmap_hike.numberLocations();
if (number_locations > 0) {
gmap_hike.reboundMap();
}
}
function hideHikesInfo() {
var activity_locations = gmap_hike.filterByUndefProperty("group_type");
for (let location_index in activity_locations) {
const a_location = activity_locations[location_index];
gmap_hike.locationHideInfo(a_location.location_id);
}
}
function showHikesInfo() {
var activity_locations = gmap_hike.locationsGetAll();
for (let location_index in activity_locations) {
const a_location = activity_locations[location_index];
gmap_hike.locationShowInfo(a_location.location_id);
}
}
//////////////////////
SvgButtons.treeHover(the_options.BURKE);
var burke_elem = document.getElementById("drag_burke");
burke_elem.ondragstart = gmap_hike.startDragFromOutside(BURKE_HIKE);
SvgButtons.treeHover(the_options.ALOUETTE);
var alloutte_elem = document.getElementById("drag_alloutte");
alloutte_elem.ondragstart = gmap_hike.startDragFromOutside(ALOUETTE_HIKE);
SvgButtons.treeHover(the_options.SWAN);
var swan_elem = document.getElementById("drag_swan");
swan_elem.ondragstart = gmap_hike.startDragFromOutside(SWAN_HIKE);
SvgButtons.treeHover(the_options.BASTION);
var bastion_elem = document.getElementById("drag_bastion");
bastion_elem.ondragstart = gmap_hike.startDragFromOutside(BASTION_HIKE);
setInterval(showNumberHikes, 1000);
gmap_hike.clearHikes = clearHikes;
gmap_hike.showNumberHikes = showNumberHikes;
gmap_hike.reSizeHikes = reSizeHikes;
gmap_hike.hideHikesInfo = hideHikesInfo;
gmap_hike.showHikesInfo = showHikesInfo;
clearHikes();
reSizeHikes();
hideHikesInfo();
hideHikesInfo();
gmap_hike.showHikesInfo();
const clear_all_options = {
append_to_id: "icon_all",
marker_icon_title: "Delete all",
main_color: "#888",
minor_color: "#888",
minor_hover: "#f00",
normal_opacity: NON_HOVER_OPACITY_HIKE,
};
const resize_options = {
append_to_id: "icon_resize",
marker_icon_title: "ReSize",
main_color: "#888",
minor_color: "#888",
minor_hover: "#00f",
normal_opacity: NON_HOVER_OPACITY_HIKE,
};
const hide_options = {
append_to_id: "icon_hide",
marker_icon_title: "Hide Info",
main_color: "#888",
minor_color: "#888",
minor_hover: "#00f",
normal_opacity: NON_HOVER_OPACITY_HIKE,
};
const show_options = {
append_to_id: "icon_show",
marker_icon_title: "Show Info",
main_color: "#888",
minor_color: "#888",
minor_hover: "#0f0",
normal_opacity: NON_HOVER_OPACITY_HIKE,
};
var svg_buttons = SvgButtons;
svg_buttons.resizeHover(resize_options);
svg_buttons.clear_all(clear_all_options);
svg_buttons.resizeShowInfo(show_options);
svg_buttons.resizeHideInfo(hide_options);
return gmap_hike;
}
window.hikeMap = hikeMap;
export default hikeMap;