Can add new spokes by dragging from the below icons when they are visible on the map.





Steveston


Sasamat Lake


North Shore


Stanley Park
Add new locations on the map connected to the "North Shore" hub by dragging from the "water" icon in the center of hub.


Drag Here to Delete


Clear All 0


Resize Map


Hide Info


Show Info


Drag Here to Modify
Lat
Lng
Title

Activity
Id
Svg
Outing
Color
Extra


//   window.gmap_activities = window.activitiesMap("gmap-activites-id", [NORTH_SHORE_OUTING]);

var STEVESTON_COLOR = "#0101ff";
var NORTH_SHORE_COLOR = "#148aa5";
var SASAMAT_COLOR = "#ff01ff";
var STANLEY_COLOR = "#ff0101";

const CAN_MOVE_ACTIVITIES = true;

var NON_HOVER_OUTING = "#ccc";
var HOVER_COLOR_OUTING = "#0f0";
var NON_HOVER_OPACITY_OUTING = 0.75;

const SKI_ICON_PATH =
  "m330.98799,85.17422c19.10273,0 47.26773,11.66465 47.26773,39.81121c0,28.14654 -18.0507,79.97311 -18.0507,79.97311c0,0 47.15701,30.87814 58.89549,40.34646c24.58439,19.78564 16.22349,37.54103 -16.6849,23.6431c-53.4323,-22.55414 -78.51501,-33.68358 -82.53859,-47.76607c-4.02358,-14.0825 -0.46143,-42.65355 -0.46143,-42.65355l-30.87814,12.82744l-130.6369,-96.01202c0,0 -11.99689,8.52702 -18.27218,8.52702c-6.31222,0 -13.84257,-4.61418 -13.84257,-4.61418l14.52546,-19.5088l-15.57751,-19.01045l21.6313,9.20993c-0.40605,0 13.38115,-18.06917 13.38115,-18.06917c0,0 7.14277,4.20813 8.82233,12.58751c1.67956,8.37937 -1.43963,16.46342 -1.43963,16.46342l56.23773,41.21392c0,0 33.18525,-36.96886 107.62132,-36.96886l-0.00003,-0.00002l0.00002,0.00002l0.00003,-0.00003zm-5.94307,244.34892c35.32621,-43.42874 1.79032,-72.73806 -12.31065,-83.81211c-14.0825,-11.05559 -119.93198,-85.10407 -119.93198,-85.10407c-29.2355,39.99578 -1.55037,77.68446 16.13119,89.97667c17.8846,12.42141 38.09473,24.15989 49.99934,33.07451c12.2922,9.22838 15.17144,19.19502 6.12763,31.26574c-9.06227,12.08919 -38.42031,47.94768 -38.42031,47.94768l-184.12805,-105.54401c-2.65961,-1.57288 -5.67157,-2.4529 -8.75977,-2.5594c-19.41984,-0.70357 -26.60153,25.21505 -9.58883,34.60641l365.06163,209.36877c0.53855,0.30399 1.09189,0.58065 1.65816,0.82908c0,0 14.46622,6.60918 33.09239,7.85851c18.62599,1.24934 44.82886,-3.85081 61.75076,-26.85605c14.63325,-19.83363 -15.15927,-41.7538 -29.73991,-21.8814c-8.23466,11.19513 -18.26258,12.65376 -29.5596,11.8961c-11.09933,-0.74454 -19.80134,-4.51636 -20.11489,-4.65035l-130.85837,-75.06619c0,0 15.00331,-18.82552 49.59126,-61.34987l0.00002,-0.00002l-0.00002,-0.00002l0,0.00003zm48.7185,-281.86027c0,56.58858 84.88297,56.58858 84.88297,0c0,-56.58858 -84.88297,-56.58858 -84.88297,0";

const TOTEM_PATH =
  "m245.8775,69.43478c-4.66067,-4.66545 -4.65709,-12.22545 0.00716,-16.88731s12.22426,-4.65948 16.88851,0.00597l2.2354,2.2354c4.66425,4.66186 4.66783,12.22187 0.00716,16.88731c-2.33213,2.33332 -5.39028,3.50117 -8.44724,3.50117c-3.05457,0 -6.10914,-1.16427 -8.44007,-3.49401l-2.25093,-2.24854zm261.80112,320.73476c-2.26764,2.6426 -5.57776,4.16391 -9.06102,4.16391l-46.22935,0c-5.3855,0 -10.10468,-3.60506 -11.51972,-8.8007l-21.36767,-78.37041l-37.10982,0c-5.97182,0 -11.02535,-4.4111 -11.83139,-10.32799l-10.47367,-76.84074l-34.75261,0l0,92.34287l17.11539,0c6.59396,0 11.94125,5.3461 11.94125,11.94125l0,46.97448c0,1.31354 -0.21255,2.57812 -0.60423,3.7591l42.50846,60.70692c1.81626,2.59483 2.52796,5.80345 1.97747,8.9225l-7.13609,40.4677c-1.14397,6.49484 -7.32834,10.83668 -13.83274,9.68674l-40.4677,-7.1349c-3.11905,-0.5493 -5.89181,-2.3166 -7.70808,-4.91024l-32.85157,-46.91597l0,33.72925c0,3.16682 -1.25861,6.20467 -3.49759,8.44366l-29.05664,29.05545c-2.33213,2.33213 -5.38789,3.49759 -8.44366,3.49759s-6.11153,-1.16547 -8.44366,-3.49759l-29.05664,-29.05545c-2.23898,-2.23898 -3.49759,-5.27684 -3.49759,-8.44366l0,-33.72686l-32.84799,46.91119c-1.81626,2.59364 -4.58902,4.36094 -7.70808,4.91024l-40.46889,7.13609c-3.11786,0.5481 -6.32767,-0.1624 -8.9225,-1.97866s-4.36094,-4.58902 -4.91024,-7.70808l-7.13609,-40.46889c-0.55049,-3.11905 0.16121,-6.32767 1.97747,-8.9225l42.50846,-60.70692c-0.39167,-1.18218 -0.60423,-2.44557 -0.60423,-3.75791l0,-46.97448c0,-6.59515 5.34729,-11.94125 11.94125,-11.94125l17.11539,0l0,-92.34167l-34.75023,0l-10.47606,76.84074c-0.80723,5.91689 -5.85957,10.32799 -11.83139,10.32799l-37.10743,0l-21.36767,78.37041c-1.41623,5.19564 -6.13541,8.8007 -11.51972,8.8007l-46.23054,0c-3.48326,0 -6.79218,-1.52012 -9.06102,-4.16391c-2.26884,-2.6426 -3.26951,-6.14497 -2.7429,-9.58763l35.64821,-232.45311c0.8944,-5.82852 5.90734,-10.13095 11.80392,-10.13095l137.81514,0l0,-32.92202l-39.24491,0c-6.59396,0 -11.94125,-5.3461 -11.94125,-11.94125l0,-46.72252c0,-3.10114 1.20607,-6.07929 3.36266,-8.30753l33.38057,-34.4708c2.24973,-2.32257 5.3449,-3.63372 8.57859,-3.63372l98.50694,0c3.16682,0 6.20467,1.25861 8.44366,3.49759l23.76308,23.76547l23.76667,-23.76547c4.66664,-4.66306 12.22545,-4.66306 16.88851,0c4.66306,4.66306 4.66306,12.22426 0,16.88731l-28.71273,28.71154l0,88.9014l140.77537,0c5.89659,0 10.90952,4.30363 11.80392,10.13095l35.64701,232.45311c0.52541,3.44266 -0.47526,6.94384 -2.7441,9.58763zm-310.33274,-308.97621c6.59396,0 11.94125,5.3461 11.94125,11.94125l0,44.86327l89.02678,0l0,-88.9014l-25.21275,-25.21395l-88.50137,0l-26.49763,27.36337l0,29.94746l39.24372,0zm16.93508,301.99894l-34.08152,0l-43.53301,62.17091l4.20332,23.83712l23.83831,-4.20451l49.57409,-70.79966l0,-11.00386l-0.00119,0zm58.11328,0l-34.23078,0l0,81.42498l17.11539,17.1142l17.11539,-17.1142l0,-81.42498zm57.96521,0l-34.08271,0l0,11.00505l49.57767,70.80205l23.83712,4.20213l4.20332,-23.83593l-43.5354,-62.1733zm-150.30688,-46.97329l0,23.09199l150.45495,0l0,-23.09199l-150.45495,0zm304.65348,34.23198l-31.98344,-208.57062l-394.88394,0l-31.98463,208.57062l23.19707,0l21.36767,-78.37041c1.41623,-5.19564 6.13541,-8.8007 11.51972,-8.8007l35.80583,0l10.47606,-76.84074c0.80723,-5.91689 5.85957,-10.32799 11.83139,-10.32799l57.11499,0c6.59396,0 11.94125,5.3461 11.94125,11.94125l0,104.28411l92.34167,0l0,-104.28411c0,-6.59515 5.34729,-11.94125 11.94125,-11.94125l57.11738,0c5.97182,0 11.02535,4.4111 11.83139,10.32799l10.47367,76.84074l35.80703,0c5.3855,0 10.10468,3.60506 11.51972,8.8007l21.36767,78.37041l23.19826,0z";

const THEATRE_PATH =
  "m44.99634,1.42444c-13.30551,0 -28.22551,14.11279 -28.22551,28.22551l0,197.57877c0,62.54786 28.22551,141.1283 141.12749,141.1283c10.12391,0 19.36775,-0.48096 28.22544,-1.75043l0,-82.91248l-112.9019,0c0,0 14.11272,-56.45129 84.67646,-56.45129c14.11272,0 19.65991,2.08873 28.22544,5.29228l0,-61.7433c0,-25.87435 10.31054,-47.49232 28.22551,-56.45109c28.22551,-14.11279 39.62066,-8.41406 56.45095,0c28.22551,14.11279 28.22551,14.11279 28.22551,14.11279l0,-98.78938c0,-14.11279 -14.91999,-28.22558 -28.22551,-28.22558c-28.22544,0 -56.45095,28.22558 -112.9019,28.22558c-56.45102,0 -84.67646,-28.22558 -112.90197,-28.22558l0,-0.01409l-0.00001,0.00001zm49.39463,98.78938c19.48574,0 35.28183,15.795 35.28183,35.28191c0,19.48689 -15.79609,35.28191 -35.28183,35.28191c-19.48574,0 -35.28191,-15.795 -35.28191,-35.28191c0,-19.48689 15.79615,-35.28191 35.28191,-35.28191zm148.18381,42.33829c-13.30551,0 -28.22551,14.11279 -28.22551,28.22544l0,197.57945c0,62.54746 28.22551,141.12721 141.12741,141.12721c112.90197,0 141.12749,-78.57975 141.12749,-141.12721l0,-197.57945c0,-14.11272 -14.91999,-28.22544 -28.22551,-28.22544c-28.22551,0 -56.45095,28.22544 -112.90197,28.22544c-56.45095,0 -84.67646,-28.22544 -112.9019,-28.22544l-0.00001,0zm49.39455,98.78952c19.48574,0 35.28191,15.7952 35.28191,35.28231c0,19.48643 -15.79615,35.28163 -35.28191,35.28163c-19.48574,0 -35.28183,-15.7952 -35.28183,-35.28163c0,-19.4871 15.79609,-35.28231 35.28183,-35.28231zm127.01469,0c19.48574,0 35.28191,15.7952 35.28191,35.28231c0,19.48643 -15.79615,35.28163 -35.28191,35.28163c-19.48574,0 -35.28183,-15.7952 -35.28183,-35.28163c0,-19.4871 15.79609,-35.28231 35.28183,-35.28231zm-148.18381,155.24041l169.35292,0c0,0 -14.11272,56.45142 -84.67646,56.45142c-70.56367,0 -84.67646,-56.45142 -84.67646,-56.45142z";

const GONDOLA_PATH =
  "m219.55794,139.05722l81.01556,0l0,23.7772l-81.01556,0l0,-23.7772zm-40.23993,46.03199l-80.8141,140.0419l80.8347,139.81755l161.55952,0l80.72481,-139.81755l-80.72481,-140.0419l-161.58012,0zm38.96476,152.81419l-42.38505,0l0,-12.7494l42.34155,0l0.0435,12.7494l0,0zm-48.04432,-33.28259l38.62822,-74.70611l102.51028,0l38.60533,74.70611l-179.74383,0zm104.58901,-283.70785l0,-4.65196l-63.1426,0l0,4.65196l-211.68486,0l0,18.2736l211.66197,0l0,4.78703l29.3678,0l41.84934,41.82645l-28.69702,28.63063l11.83137,12.01223l40.66346,-40.66346l-41.73716,-41.82645l9.88542,0l0,-4.80993l211.68486,0l0,-18.2301l-211.68257,0z";

const FLOWER_PATH =
  "m424.5562,368.73208c-1.49443,-2.49019 -37.31213,-61.00033 -99.49326,-61.00033c-22.03696,0 -40.7432,7.35924 -55.80354,16.95778l0,-45.54168c37.90645,-7.40001 69.60467,-32.3192 86.30841,-65.9619c1.63713,-2.36788 2.80696,-4.95216 3.47498,-7.6368c5.95263,-14.39545 9.25668,-30.15361 9.25668,-46.67388l0,-135.3533c0,-12.9904 -10.53157,-23.52198 -23.52198,-23.52198l-10.85931,0l-176.36308,0l-10.85931,0c-0.13643,0 -0.26972,0.01882 -0.40615,0.02039c-0.42183,0.00627 -0.84209,0.03293 -1.26235,0.06429c-0.36694,0.02666 -0.73389,0.05018 -1.09612,0.09252c-0.37949,0.04548 -0.75427,0.10977 -1.13219,0.17249c-0.39046,0.06429 -0.78093,0.12702 -1.16512,0.2117c-0.34969,0.07684 -0.69468,0.17406 -1.04124,0.26658c-0.39203,0.10506 -0.78407,0.20543 -1.16826,0.33088c-0.34813,0.11291 -0.68998,0.24933 -1.03497,0.37949c-0.36381,0.138 -0.72918,0.26815 -1.08515,0.4234c-0.3591,0.15681 -0.71036,0.33715 -1.06476,0.51278c-0.3246,0.16152 -0.65077,0.31676 -0.96597,0.49083c-0.35753,0.19915 -0.70252,0.42026 -1.05065,0.6398c-0.29951,0.18818 -0.60059,0.37008 -0.8907,0.5708c-0.32617,0.22581 -0.64137,0.47201 -0.95813,0.71664c-0.29795,0.23052 -0.59903,0.45946 -0.88599,0.70252c-0.2807,0.23992 -0.55198,0.49396 -0.82327,0.74957c-0.30422,0.2854 -0.60687,0.5708 -0.8954,0.87031c-0.09566,0.09879 -0.20072,0.18504 -0.29481,0.28697c-0.15054,0.16152 -0.27756,0.33872 -0.4234,0.50337c-0.27913,0.31676 -0.55198,0.63666 -0.81386,0.96754c-0.22895,0.29167 -0.44849,0.58805 -0.66175,0.88599c-0.22895,0.32147 -0.45162,0.64607 -0.66646,0.97695c-0.20856,0.32617 -0.40771,0.65391 -0.59903,0.98635c-0.18974,0.32774 -0.36851,0.66018 -0.54257,0.99733c-0.1772,0.34656 -0.34656,0.69468 -0.50494,1.04908c-0.15525,0.34499 -0.30108,0.69468 -0.44065,1.04751c-0.14113,0.35753 -0.27285,0.71664 -0.39517,1.07887c-0.12388,0.36224 -0.23522,0.72918 -0.34185,1.10083c-0.1035,0.36851 -0.20072,0.73859 -0.2854,1.11181c-0.08625,0.37008 -0.16309,0.74173 -0.23052,1.11651c-0.07213,0.3936 -0.13015,0.7872 -0.18034,1.18237c-0.04548,0.36067 -0.08782,0.72134 -0.11761,1.08828c-0.0345,0.42496 -0.05332,0.84993 -0.06429,1.27489c-0.00627,0.21797 -0.03293,0.42967 -0.03293,0.65077l0,135.35486c0,59.53412 42.67671,109.26899 99.04007,120.27257l0,45.54168c-15.06034,-9.6001 -33.76658,-16.95778 -55.80197,-16.95778c-62.18113,0 -98.0004,58.50857 -99.49326,60.99876c-5.05879,8.43028 -4.34059,19.11709 1.80178,26.79467c4.7828,5.97772 48.15106,58.40664 97.68991,58.40664c22.03696,0 40.7432,-7.35924 55.80354,-16.95778l0,24.79844c0,12.9904 10.53157,23.52198 23.52198,23.52198c12.9904,0 23.52198,-10.53157 23.52198,-23.52198l0,-27.62107c16.04669,10.8797 35.39744,19.78041 55.80197,19.78041c0,0 0,0 0,0c62.18113,0 97.99883,-58.507 99.49326,-60.99719c4.47074,-7.44863 4.47074,-16.75392 0.00314,-24.20255zm-258.14429,38.15735c-15.20931,0 -34.46597,-13.81367 -48.56347,-27.36547c10.22736,-10.9926 27.28079,-24.74669 48.56504,-24.74669c22.14359,0 39.69726,14.87687 49.75839,26.05294c-10.07838,11.19646 -27.62578,26.05921 -49.75996,26.05921zm154.84361,-359.84548l0,106.74744l-114.74177,-106.74744l114.74177,0zm-75.51809,187.35098c-41.64174,0 -75.51809,-33.87792 -75.51809,-75.51809l0,-81.3437l135.99623,126.52158c-13.78545,18.40673 -35.76438,30.34021 -60.47814,30.34021zm79.32395,172.4945c-15.20931,0 -34.46754,-13.81367 -48.56504,-27.36547c10.22892,-10.9926 27.28236,-24.74669 48.56661,-24.74669c22.14516,0 39.69882,14.88 49.76153,26.05608c-10.06584,11.17608 -27.62578,26.05608 -49.76309,26.05608z";

const LEAF_PATH =
  "m71.89044,45.28387c15.7331,32.73957 15.55846,71.59162 -0.54427,115.48119c-48.95251,133.52873 2.72985,211.21759 3.25547,211.98228c29.39083,45.74281 66.91696,68.88042 111.61701,68.88042c33.69756,0 71.01174,-12.99477 110.89809,-38.61298l4.75944,-3.04353c-63.04261,-58.99531 -132.92002,-122.89587 -143.11034,-208.21136c-1.42088,-11.87909 8.47441,-17.96446 17.73386,-17.18959c-6.43635,3.7811 -11.02962,11.35177 -8.19803,20.34502c25.85051,82.216 80.99859,143.44267 142.7424,199.20115c1.18011,1.0699 2.37887,2.12962 3.55898,3.19104c1.19028,1.06142 2.37039,2.1398 3.55898,3.19952c16.55375,14.73781 33.48561,29.14159 50.42765,43.47415c15.72462,13.29828 31.4289,26.55077 46.78389,39.98808c15.83483,13.8612 35.11844,-12.50475 19.35821,-26.29305c-29.00425,-25.37914 -59.34459,-50.00376 -88.52518,-75.61349c-1.19028,-1.04277 -2.35174,-2.11267 -3.54202,-3.16391c-1.19028,-1.05125 -2.36022,-2.11267 -3.5505,-3.17239c32.36993,-22.16097 58.93088,-45.53087 65.54187,-77.0988c5.69878,-27.22391 -3.8184,-58.78336 -29.07716,-96.46549c-58.1187,-86.71432 -247.34997,-165.54768 -337.20277,-199.16215c12.39454,10.3107 24.79926,24.15325 33.51444,42.28387z";

const BRIDGE_SVG = `
   
        
            
        
   
`;

const BRIDGE_PATH =
  "m739.33204,327.7715l-233.24083,-0.32269l0.02706,-16.65515l233.23459,0.32269c0.00833,0 0.01457,0 0.02498,0c9.1874,0 16.64058,-7.44069 16.65515,-16.63225c0.01249,-9.19781 -7.43444,-16.66556 -16.63225,-16.67805l-6.58919,-0.00833l-226.35393,-175.82844l0.0687,-41.68576c0.01457,-9.19781 -7.43028,-16.66764 -16.62809,-16.68222c-0.01041,0 -0.01874,0 -0.02915,0c-9.18532,0 -16.6385,7.43861 -16.65515,16.62809l-0.06454,39.89534l-225.13394,130.34114l-224.55517,-130.00595l0.06662,-40.84468c0.01457,-9.19781 -7.43028,-16.66764 -16.62809,-16.68222c-0.01041,0 -0.01874,0 -0.02915,0c-9.18532,0 -16.6385,7.43861 -16.65515,16.62809l-0.0687,42.36654l-206.29488,174.5564l-27.10626,-0.03747c-0.00833,0 -0.01666,0 -0.0229,0c-9.1874,0 -16.64266,7.44069 -16.65515,16.63225c-0.01249,9.19781 7.43444,16.66556 16.63225,16.67805l233.10759,0.32269l-0.02706,16.65515l-233.10135,-0.32061c-0.00833,0 -0.01666,0 -0.0229,0c-9.1874,0 -16.64266,7.44069 -16.65515,16.63225c-0.01249,9.19781 7.43444,16.66556 16.63225,16.67805l233.0951,0.32269l-0.07911,48.90785l-16.65932,-0.0229c-0.00625,0 -0.01457,0 -0.0229,0c-9.1874,0 -16.64266,7.44069 -16.65515,16.63225c-0.01249,9.19781 7.43444,16.66556 16.63225,16.67805l33.28532,0.0458c0.00625,0 0.01249,0 0.02082,0c0.01041,0 0.01874,0 0.02915,0c0.00625,0 0.01249,0 0.01874,0l33.26867,0.0458c0.00625,0 0.01457,0 0.0229,0c9.1874,0 16.64266,-7.44069 16.65515,-16.63225c0.01249,-9.19781 -7.43444,-16.66556 -16.63225,-16.67805l-16.65099,-0.0229l0.07911,-48.90785l449.68911,0.6204l-0.07911,48.90785l-16.65932,-0.0229c-0.00625,0 -0.01457,0 -0.0229,0c-9.1874,0 -16.64266,7.44069 -16.65515,16.63225c-0.01249,9.19781 7.43444,16.66556 16.63225,16.67805l66.62061,0.0916c0.00625,0 0.01457,0 0.0229,0c9.1874,0 16.64266,-7.44069 16.65515,-16.63225c0.01249,-9.19781 -7.43444,-16.66556 -16.63225,-16.67805l-16.65099,-0.0229l0.07911,-48.90785l233.24916,0.32269c0.00833,0 0.01457,0 0.02498,0c9.1874,0 16.64266,-7.44069 16.65515,-16.63225c0.00625,-9.19989 -7.43861,-16.66764 -16.63642,-16.67805zm-232.99309,-152.90471l56.65875,102.69567l-56.82738,-0.07911l0.16863,-102.61656zm-33.47686,102.57075l-84.51449,-0.11659l84.70394,-116.46948l-0.18945,116.58607zm128.2072,0.17696l-57.9058,-104.95452l135.25233,105.0607l-77.34653,-0.10618zm-171.30032,-113.8796l-82.56792,113.52984l-18.39978,-0.02498l-47.54421,-27.52472l148.51191,-85.98014zm-167.61121,113.41118l-28.21591,-0.03956l14.0736,-8.14853l14.14231,8.18809zm-94.54297,-0.12908l-17.50248,-0.02498l-82.92184,-112.71999l147.5813,85.44301l-47.15698,27.30196zm-58.89678,-0.08119l-85.54503,-0.11867l0.18945,-115.91153l85.35557,116.0302zm-159.53554,-96.70606l-52.58864,96.41251l-61.25349,-0.08536l113.84213,-96.32715zm-14.67527,96.46456l55.52203,-101.79004l-0.16655,101.86499l-55.35548,-0.07495zm88.58459,50.08829l0.02706,-16.65515l449.68911,0.6204l-0.02706,16.65515l-449.68911,-0.6204z";
const FISH_HOOK =
  "m286.20576,265.6732c-9.06551,-15.77485 -28.87781,-33.61855 -71.10405,-45.03312l9.31178,51.57591c-34.33764,9.47596 -71.83261,29.48638 -111.62455,65.03723l-73.6536,-61.40471c0,0 21.71538,86.90969 0,166.26071c31.42499,-28.88096 57.98373,-51.44962 75.7114,-65.88971c92.2298,72.06546 183.98364,131.51815 330.20946,-18.45306c0.00158,0 -60.93742,-85.67359 -158.85044,-92.09325zm144.99367,-61.94461c50.06592,-41.46927 17.17276,-105.6777 17.17276,-105.6777l-62.69211,-95.05089l-10.09243,123.87344c0,0 9.10655,-8.08673 21.74617,-24.76537c18.69302,23.75266 26.27932,55.60468 0,72.80112c-48.54566,31.84571 -67.75885,-24.78274 -67.75885,-24.78274c0,0 -27.30624,-68.23798 -44.98497,-123.87028c-17.70635,18.19969 -42.5033,14.66663 -42.5033,14.66663c0,0 24.79695,79.88777 51.58302,138.54322c36.42621,53.58477 87.47801,65.71763 137.52972,24.26257z";

const PLAIN_FISH =
  "m458.5793,239.97737c1.56992,-3.37074 12.29747,-17.5903 22.00981,-32.32973c0.00903,-0.01032 0.01677,-0.02064 0.02193,-0.02967c2.19169,-3.32559 4.32792,-6.6757 6.3016,-9.9355c0.05547,-0.09159 0.11094,-0.18447 0.16641,-0.27606c0.31992,-0.53148 23.03793,-36.95305 -9.32018,-22.20331c0,0.00258 -0.00258,0.00645 -0.00516,0.00903c-6.07972,3.11791 -13.81192,7.76703 -23.53458,14.28277c-21.20872,14.21698 -64.35115,35.02839 -64.35115,35.02839s-7.50774,4.05573 -12.45872,0.9662c-25.02065,-15.60888 -61.47576,-43.33592 -109.53563,-58.77452c-0.80108,-0.258 -1.81631,-0.86816 -0.43602,-2.14654l20.58179,-14.39371c0,0 1.61249,-1.39319 -0.45795,-2.06656c-10.18576,-3.31914 -52.60966,-17.54515 -89.3189,-4.46595c-7.47807,2.66383 -13.61584,4.85165 -18.66228,6.6499c-2.16976,0.77399 -4.37436,1.68344 -8.77064,2.22652c-100.10838,3.42363 -167.80963,76.9092 -167.80963,105.97783c0,19.50852 10.51858,32.59934 48.95125,50.79722c0.77141,-0.12255 6.63829,4.08927 19.52658,0.21672c3.45459,-1.03844 27.98891,-10.27864 28.96414,-10.69531c0.97781,-0.44634 1.61249,-0.66692 2.01754,-0.60114c0.52116,0.08256 0.90428,1.24097 0.9017,1.47575c-0.08127,6.94918 -13.1063,12.5774 -20.50181,18.75258c-1.26935,0.59211 -1.60991,3.53973 0.61275,4.49432c0.00258,0 26.11714,14.00155 67.4755,18.35527c3.34365,0.35217 46.87823,28.24691 90.77788,20.76368c23.21853,-3.95898 34.26729,-5.31347 39.30986,-6.70408c4.40145,-1.21259 2.30005,-2.60836 2.30005,-2.60836l-22.00594,-17.53354c-1.48994,-1.65248 -0.28509,-2.92183 0.96233,-3.27528c48.8674,-13.9048 87.50518,-35.82431 110.51602,-54.60269c3.09856,-2.52967 11.15196,3.48426 16.90145,6.38932c19.09314,9.64525 98.34625,42.31554 104.87747,35.3999c0.56244,-0.58308 0.60243,-1.45124 0.02967,-2.64448c-11.15196,-23.42493 -51.45899,-43.40558 -36.03716,-76.49898zm-374.52278,-2.25619c-7.0498,0 -12.76445,-5.82043 -12.76445,-12.99923s5.71466,-12.99794 12.76445,-12.99794s12.76574,5.81914 12.76574,12.99794s-5.71595,12.99923 -12.76574,12.99923zm57.12462,73.95899c-0.7856,0.70562 -1.50155,1.77116 -1.08617,0.23865c0,0 19.89938,-29.94067 22.47936,-68.64166c1.9324,-29.00413 -17.39164,-64.5253 -17.39164,-64.5253s0.03741,-1.03715 0.71594,-0.21801c6.87952,8.32044 74.61689,61.83954 -4.71749,133.14631z";

const BINOCULAR_PATH_2 =
  "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 CONE_PATH =
  "m363.94927,82.35498c-1.19384,0 -2.38227,0.03781 -3.5617,0.09543c-12.10042,-45.7313 -53.74783,-79.45042 -103.28752,-79.45042c-49.64413,0 -91.37437,33.86317 -103.36855,79.74753c-33.70471,3.60132 -59.9565,32.12193 -59.9565,66.77739c0,37.10075 30.07278,67.17353 67.16993,67.17353c15.8926,0 30.48873,-5.52982 41.98773,-14.75639c15.8854,9.36342 34.39436,14.75639 54.16738,14.75639c22.40918,0 43.19598,-6.91092 60.37425,-18.69983c12.06621,11.57283 28.43418,18.69983 46.47497,18.69983c37.09895,0 67.17173,-30.07278 67.17173,-67.17353c0,-37.09535 -30.07458,-67.16993 -67.17173,-67.16993zm-106.84922,-14.32423c-23.05922,0 -41.81847,18.75925 -41.81847,41.81847c0,7.46012 -6.04481,13.50493 -13.50493,13.50493c-7.46012,0 -13.50493,-6.04481 -13.50493,-13.50493c0,-37.95066 30.87588,-68.82834 68.82834,-68.82834c7.46012,0 13.50493,6.04481 13.50493,13.50493c0,7.46012 -6.04481,13.50493 -13.50493,13.50493zm0,175.67756c-12.66943,0 -25.21461,-1.84027 -37.27721,-5.33895l28.29914,105.05397c1.93931,7.20263 -2.32645,14.61234 -9.52728,16.55345c-1.17583,0.31692 -2.36066,0.46817 -3.52209,0.46817c-5.95658,0 -11.40897,-3.97045 -13.03136,-9.99545l-30.17722,-112.02972c-8.36586,2.91346 -17.13326,4.67091 -26.03571,5.13908l64.71924,244.42487c3.24839,12.26788 14.34944,20.8138 27.04228,20.8138c12.69284,0 23.79389,-8.54412 27.04228,-20.8138l64.97133,-245.37742c-12.09502,-1.84928 -23.64804,-6.016 -34.08825,-12.29669c-18.10741,8.80702 -37.98127,13.39869 -58.41513,13.39869z";

const TREES_PATH_2 =
  "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_2 =
  "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_2 =
  "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 ORCA_PATH =
  "m462.69404,269.48885c-4.16165,-1.39225 -8.41392,-4.78536 -10.94698,-8.41748c-24.88993,-35.70275 -52.74383,-68.42553 -89.53053,-92.61889c-26.77084,-17.60615 -56.57941,-25.7633 -88.07697,-28.83745c-29.61576,-2.88845 -59.00407,-0.47889 -88.2982,3.9111c-17.73321,2.65745 -26.24486,-1.66413 -34.22698,-17.77319c-8.82707,-17.80962 -11.67287,-37.09855 -13.48449,-56.58651c-0.81563,-8.75776 -3.34958,-10.46543 -10.98785,-6.09765c-13.66574,7.81597 -19.33247,20.97439 -19.6621,35.55082c-0.4709,20.66609 0.39093,41.4379 2.0444,62.05245c1.12748,14.03979 -0.9027,25.54918 -10.23353,37.19273c-17.04819,21.26848 -33.75964,42.86569 -48.29609,65.92446c-1.59127,-1.10883 -3.1861,-2.21854 -4.77737,-3.32736c-2.51618,-3.29449 -5.33622,-6.82976 -7.80087,-10.60314c-3.30959,-5.06435 -6.32954,-5.9706 -10.83859,-1.14525c-13.65596,14.62619 -18.68299,42.95187 -11.85412,62.90717c0.50022,4.06747 1.93245,8.00789 4.29226,11.36102c-9.08028,20.7496 -16.26899,42.16645 -18.72653,65.09817c-1.12748,10.51962 0.52954,21.36265 1.21455,32.04132c0.39182,6.06033 1.689,12.06381 2.06661,18.12147c0.73211,11.80259 14.66261,24.81707 26.27774,22.9788c7.5361,-1.19323 15.99001,-2.90445 21.84421,-7.29355c23.59186,-17.69323 50.46399,-29.52869 75.63556,-44.35212c11.83191,-6.96747 22.69271,-15.17793 32.58862,-25.09161c4.62632,-3.52816 8.63871,-7.84885 11.78926,-12.74261c42.61514,4.03104 88.84817,-12.11889 113.3756,-40.94835c5.25981,-6.18383 9.38148,-13.67373 12.58268,-21.17696c2.99329,-7.02167 0.34029,-9.88525 -7.32642,-9.93234c-13.17352,-0.07996 -26.3497,-0.02221 -39.52322,-0.02221l0,0.94001c-5.87198,0 -11.74484,0.02132 -17.6177,0.03199c5.41974,-1.80095 10.66089,-3.97951 15.6124,-6.81821c6.5721,-2.66456 12.68041,-6.82976 18.78517,-12.25305c13.14775,-11.68265 28.26083,-22.05745 44.138,-29.57933c18.08505,-8.56585 35.68054,-10.32416 52.63099,-7.15583c3.09547,0.97555 6.22115,2.10659 9.39214,3.40377c2.23986,0.91691 4.55702,1.26164 6.85553,1.14881c10.21132,3.81336 20.15521,9.27664 29.79346,15.96424c1.76897,1.22966 3.48729,2.53484 5.16919,3.88977c-0.12794,1.20745 -0.25411,2.41489 -0.38116,3.62145c-0.09773,0.04709 -0.19991,0.09773 -0.29764,0.14482c-1.69256,10.83148 -10.1278,16.5924 -16.84917,23.62029c-8.66714,9.06251 -16.26544,18.63679 -13.18773,32.30608c0.99688,4.43264 3.16122,8.65292 5.15852,12.78969c0.62371,1.28652 2.54461,2.84492 3.70497,2.72142s2.81293,-2.08082 3.04572,-3.4402c1.72188,-10.04873 10.421,-9.56984 17.18235,-13.0749c6.26824,-3.25184 12.5427,-2.33848 18.2272,-4.48417c3.30959,-1.25098 5.10344,-6.51079 7.65516,-10.35348c0.17059,0.13416 0.34118,0.27276 0.51088,0.39893c3.58147,9.27575 12.12955,10.96564 21.1201,9.38503c13.57156,-2.38913 24.13916,4.01683 34.63035,10.41478c3.76183,2.29406 6.00614,7.08298 10.34815,12.47695c1.1568,-4.84311 2.51973,-7.90926 2.52773,-10.97986c0.08974,-32.93158 -16.12861,-54.86286 -47.27522,-65.29186z";

const WATER_PATH_2 =
  "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 MAN_FISH_2 =
  "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_2 =
  "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_2 =
  "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";

const THEATRE_SVG = `
   
        
            
            
        
   
`;

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";
var PIN_SVG_HAS_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,-128zm0,192c-35.344,0 -64,-28.656 -64,-64s28.656,-64 64,-64s64,28.656 64,64s-28.656,64 -64,64z";

var STANLEY_PARK = {
  location_id: "STANLEY_PARK",
  lat: 49.3006,
  lng: -123.125,
  pin_color: STANLEY_COLOR,
  title_text: "Visit Stanley Park",
  group_type: true,
  title_style: "color: ".concat(STANLEY_COLOR, "; font-size: 16px; font-weight:bold; "),
  marker_svg: PARK_PATH_2,
  can_move: CAN_MOVE_ACTIVITIES,
  group_lat: 49.29999460222812,
  group_lng: -123.12838696340592,
  group_zoom: 16,
};
var VANCOUVER_AQUARIUM = {
  location_id: "VANCOUVER_AQUARIUM",
  lat: 49.301028448370104,
  lng: -123.1303740539247,
  pin_color: STANLEY_COLOR,
  marker_svg: ORCA_PATH,
  can_move: CAN_MOVE_ACTIVITIES,
  content_text: "Vancouver Aquarium",
};

var THEATRE_STARS = {
  location_id: "THEATRE_STARS",
  lat: 49.29859374164774,
  lng: -123.13408623120131,
  pin_color: STANLEY_COLOR,
  marker_svg: THEATRE_PATH,
  can_move: CAN_MOVE_ACTIVITIES,
  title_text: THEATRE_SVG,
};

var ROSE_GARDEN = {
  location_id: "rose_garden",
  lat: 49.298748185948476,
  lng: -123.13655332352153,
  pin_color: STANLEY_COLOR,
  marker_svg: FLOWER_PATH,
  can_move: CAN_MOVE_ACTIVITIES,
  title_text: "Rose Garden",
};

var TOTEM_POLES = {
  location_id: "totem_poles",
  lat: 49.29945424568891,
  lng: -123.12079550987937,
  pin_color: STANLEY_COLOR,
  marker_svg: TOTEM_PATH,
  can_move: CAN_MOVE_ACTIVITIES,
  title_text: "Totem Poles",
};

var STANLEY_PARK_OUTING = [STANLEY_PARK, VANCOUVER_AQUARIUM, THEATRE_STARS, ROSE_GARDEN, TOTEM_POLES];

var NORTH_SHORE = {
  location_id: "north_shore",
  lat: 49.35643927612489,
  lng: -123.0685231089592,
  pin_color: NORTH_SHORE_COLOR,
  title_text: "Visit the North Shore",
  title_style: "color: ".concat(NORTH_SHORE_COLOR, "; font-size: 16px; font-weight:bold; "),
  marker_svg: WATER_PATH_2,
  can_move: CAN_MOVE_ACTIVITIES,
  group_type: true,
  group_lat: 49.367238543988286,
  group_lng: -123.0699056749604,
  group_zoom: 13,
};
var LYNN_CREEK = {
  location_id: "Lynn Creek Ecology",
  lat: 49.3469483290511,
  lng: -123.01933489674076,
  marker_svg: LEAF_PATH,
  can_move: CAN_MOVE_ACTIVITIES,
  pin_color: NORTH_SHORE_COLOR,
  title_text: "Lynn Canyon Ecology Centre",
  content_text: "",
  order_index: 1,
};
var SUSPENSION_BRIDGE = {
  location_id: "Capilano Suspension Bridge",
  lat: 49.34431680519281,
  lng: -123.1154057370374,
  marker_svg: TREES_PATH_2,
  can_move: CAN_MOVE_ACTIVITIES,
  pin_color: NORTH_SHORE_COLOR,
  title_text: "Capilano Suspension Bridge",
  order_index: 3,
};
var HATCHERY_URL = "https://www.tripadvisor.ca/Attraction_Review-g181717-d155847-Reviews-Capilano_Salmon_Hatchery-North_Vancouver_British_Columbia.html";
var HATCHERY = {
  location_id: "HATCHERY",
  lat: 49.35890968429735,
  lng: -123.11046738078812,
  marker_svg: PLAIN_FISH,
  can_move: CAN_MOVE_ACTIVITIES,
  pin_color: NORTH_SHORE_COLOR,
  title_text: "Capilano River Hatchery"),
  order_index: 4,
};
var GROUSE = {
  location_id: "Grouse",
  lat: 49.38048692077353,
  lng: -123.08179818027958,
  marker_svg: GONDOLA_PATH,
  can_move: CAN_MOVE_ACTIVITIES,
  pin_color: NORTH_SHORE_COLOR,
  title_text: "Grouse Mountain",
  order_index: 2,
};
var NORTH_SHORE_OUTING = [NORTH_SHORE, LYNN_CREEK, SUSPENSION_BRIDGE, HATCHERY, GROUSE];

var STEVESTON = {
  location_id: "steveston",
  lat: 49.125515219688346,
  lng: -123.19314694541674,
  pin_color: STEVESTON_COLOR,
  title_text: "Visit Steveston",
  title_style: "color: ".concat(STEVESTON_COLOR, "; font-size: 16px; font-weight:bold; "),
  marker_svg: CAR_PARK_2,
  can_move: CAN_MOVE_ACTIVITIES,
  group_type: true,
  group_lat: 49.12533062792256,
  group_lng: -123.18892228671896,
  group_zoom: 16,
};
var GARRY_POINT_PARK = {
  location_id: "Garry Point Park",
  lat: 49.12450214052779,
  lng: -123.19713597062844,
  marker_svg: BINOCULAR_PATH_2,
  can_move: CAN_MOVE_ACTIVITIES,
  pin_color: STEVESTON_COLOR,
  title_text: "Garry Point Park",
  order_index: 1,
};

var MARYS_ICE_CREAM = {
  location_id: "Marys Ice Cream",
  lat: 49.12453021459576,
  lng: -123.18427506512461,
  marker_svg: CONE_PATH,
  can_move: CAN_MOVE_ACTIVITIES,
  pin_color: STEVESTON_COLOR,
  content_text: "Mary's Ice Cream",
  order_index: 3,
};

var SEABREEZE_ADVENTURES = {
  location_id: "Seabreeze Adventures",
  lat: 49.123649970228,
  lng: -123.18069116765884,
  marker_svg: ORCA_PATH,
  can_move: CAN_MOVE_ACTIVITIES,
  pin_color: STEVESTON_COLOR,
  title_text: "Steveston Seabreeze",
  content_text: "Eco-Tours",
  order_index: 4,
};
var GEORGIA_CANNERY = {
  location_id: "Georgia Cannery",
  lat: 49.12551316365467,
  lng: -123.18719284231094,
  pin_color: STEVESTON_COLOR,
  marker_svg: FISH_HOOK,
  can_move: CAN_MOVE_ACTIVITIES,
  title_text: " Gulf of Georgia Cannery",
  content_text: "Historical Site",
  order_index: 2,
};

var STEVESTON_OUTING = [STEVESTON, GARRY_POINT_PARK, GEORGIA_CANNERY, MARYS_ICE_CREAM, SEABREEZE_ADVENTURES];

var VAN_TRAILS_SASAMAT = "https://www.vancouvertrails.com/trails/sasamat-lake/";
var SASAMAT = {
  location_id: "sasamat",
  lat: 49.31833185480837,
  lng: -122.89149357226643,
  pin_color: SASAMAT_COLOR,
  marker_svg: CAR_PARK_2,
  can_move: CAN_MOVE_ACTIVITIES,
  title_style: "color: ".concat(SASAMAT_COLOR, "; font-size: 16px; font-weight:bold; "),
  title_text: "Visit Sasamat Lake"),
  group_type: true,
  group_lat: 49.322732829467164,
  group_lng: -122.88177324679653,
  group_zoom: 15,
};
var FISH_URL = "http://www.fishingwithrod.com/articles/region_two/sasamat_lake.html";
var SASAMAT_FISH = {
  location_id: "sasamat_fish",
  lat: 49.316289665483986,
  lng: -122.88698746112141,
  pin_color: SASAMAT_COLOR,
  marker_svg: MAN_FISH_2,
  can_move: CAN_MOVE_ACTIVITIES,
  title_text: "Fish at Sasamat"),
};

var WHITE_PINE_URL = "https://www.tripadvisor.ca/Attraction_Review-g815383-d3923634-Reviews-White_Pine_Beach_Sasamat_Lake-Port_Moody_British_Columbia.html";
var SASAMAT_SWIM = {
  location_id: "sasamat swim",
  lat: 49.32218762262639,
  lng: -122.88518630109843,
  pin_color: SASAMAT_COLOR,
  marker_svg: SWIM_PATH_2,
  can_move: CAN_MOVE_ACTIVITIES,
  title_text: " White Pine Beach"),
};
var BUNTZEN_RIDGE_TRAIL_HREF =
  'Buntzen Ridge Trail Hike';
var BUNTZEN_RIDGE_TRAIL = {
  location_id: "sasamat BUNTZEN_RIDGE_TRAIL",
  lat: 49.325916969909045,
  lng: -122.8747565880135,
  pin_color: SASAMAT_COLOR,
  title_text: BUNTZEN_RIDGE_TRAIL_HREF,
  marker_svg: HIKE_MAN_2,
  can_move: CAN_MOVE_ACTIVITIES,
  content_text: "Buntzen Ridge Trail",
};

var SASAMAT_OUTING = [SASAMAT, SASAMAT_FISH, BUNTZEN_RIDGE_TRAIL, SASAMAT_SWIM];

const delete_options = {
  append_to_id: "outing_delete",
  marker_icon_title: "Delete",
  main_color: "#f00",
  minor_color: "#0f0",
  minor_hover: "#00f",
  normal_opacity: NON_HOVER_OPACITY_OUTING,
};

const clear_all_activities = {
  append_to_id: "icon_all_activities",
  marker_icon_title: "Delete all",
  main_color: "#888",
  minor_color: "#888",
  minor_hover: "#f00",
  normal_opacity: NON_HOVER_OPACITY_OUTING,
};

const resize_activities = {
  append_to_id: "icon_resize_activities",
  marker_icon_title: "ReSize",
  main_color: "#888",
  minor_color: "#888",
  minor_hover: "#00f",
  normal_opacity: NON_HOVER_OPACITY_OUTING,
};

const hide_activities = {
  append_to_id: "icon_hide_activities",
  marker_icon_title: "Hide Info",
  main_color: "#888",
  minor_color: "#888",
  minor_hover: "#00f",
  normal_opacity: NON_HOVER_OPACITY_OUTING,
};

const show_activities = {
  append_to_id: "icon_show_activities",
  marker_icon_title: "Show Info",
  main_color: "#888",
  minor_color: "#888",
  minor_hover: "#0f0",
  normal_opacity: NON_HOVER_OPACITY_OUTING,
};

const edit_options = {
  append_to_id: "icon_edit",
  marker_icon_title: "Edit Marker",
  main_color: "#f00",
  minor_color: "#0f0",
  minor_hover: "#00f",
  normal_opacity: NON_HOVER_OPACITY_OUTING,
};

const drag_edit_options = {
  append_to_id: "icon_drag",
  marker_icon_title: "Drag Changes to Map",
  main_color: "#f49",
  minor_color: NON_HOVER_OUTING,
  minor_hover: HOVER_COLOR_OUTING,
  normal_opacity: NON_HOVER_OPACITY_OUTING,
};

///////////////

const steveston_options = {
  append_to_id: "icon_steveston",
  marker_icon_title: "Steveston",
  main_color: STEVESTON_COLOR,
  minor_color: NON_HOVER_OUTING,
  minor_hover: HOVER_COLOR_OUTING,
  normal_opacity: NON_HOVER_OPACITY_OUTING,
};

const sasamat_options = {
  append_to_id: "icon_sasamat",
  marker_icon_title: "Sasamat Lake",
  main_color: SASAMAT_COLOR,
  minor_color: NON_HOVER_OUTING,
  minor_hover: HOVER_COLOR_OUTING,
  normal_opacity: NON_HOVER_OPACITY_OUTING,
};

const north_shore_options = {
  append_to_id: "icon_north_shore",
  marker_icon_title: "North Shore",
  main_color: NORTH_SHORE_COLOR,
  minor_color: NON_HOVER_OUTING,
  minor_hover: HOVER_COLOR_OUTING,
  normal_opacity: NON_HOVER_OPACITY_OUTING,
};

const stanley_options = {
  append_to_id: "icon_stanley",
  marker_icon_title: "Stanley Park",
  main_color: STANLEY_COLOR,
  minor_color: NON_HOVER_OUTING,
  minor_hover: HOVER_COLOR_OUTING,
  normal_opacity: NON_HOVER_OPACITY_OUTING,
};

"use strict";

import ReactDOM from "react-dom";
import React from "react";

import { GmapDragDrop, GmapGroups, KmsDistance, SvgButtons } from "gmap-dragdrop-react";

const GOOGLE_MAP_KEY = GLOBAL_WEBPACK.GOOG_MAP_API;

function activitiesMap(map_id, activity_locations) {
  let lat_start = activity_locations[0][0].group_lat;
  let lng_start = activity_locations[0][0].group_lng;
  let zoom_start = activity_locations[0][0].group_zoom;

  const activity_options = {
    change_rebounding: false,
    init_zoom: zoom_start,
    pin_scale: 0.05,
    lat_center: lat_start,
    lng_center: lng_start,
    pin_svg: PIN_SVG_NO_HOLE,
  };

  function clearOutings() {
    gmap_activities.locationsClearAll();
  }

  function dropOnActivityDelete(event) {
    event.preventDefault();
    var delete_data = event.dataTransfer.getData("text");
    var marker_data = JSON.parse(delete_data);
    var location_id = marker_data.location_id;
    if (gmap_activities.locationExists(location_id)) {
      gmap_activities.deleteMember(marker_data);
    } else {
      throw 'Location id "' + location_id + '" does not exist on outing map';
    }
  }

  function setIdVal(id, new_value) {
    if (new_value) {
      try {
        document.getElementById(id).value = new_value;
      } catch (e) {
        console.log(e);
      }
    } else {
      document.getElementById(id).value = "";
    }
  }

  function getIdVal(id) {
    return document.getElementById(id).value;
  }

  function dropOnModify(event) {
    event.preventDefault();
    var in_data = event.dataTransfer.getData("text");
    var marker_data = JSON.parse(in_data);
    setIdVal("location-id", marker_data.location_id);
    setIdVal("location-lat", marker_data.lat);
    setIdVal("location-lng", marker_data.lng);
    setIdVal("location-color", marker_data.pin_color);

    setIdVal("location-svg", marker_data.marker_svg);
    setIdVal("location-outing", marker_data.group_type);
    setIdVal("location-title", marker_data.title_text);
    if (marker_data.content_text.indexOf("<input") > -1) {
      marker_data.content_text = "";
    }
    setIdVal("location-content", marker_data.content_text);
    setIdVal("location-extra", marker_data.extra_text);

    document.getElementById("dragging_modified_title").innerHTML = marker_data.title_text;
    document.getElementById("dragging_modified_content").innerHTML = marker_data.content_text;
    prepareModifyDrag();
  }

  function setSasamatOuting() {
    var sasamat_parameters = SASAMAT_OUTING;
    var sasamat_id = document.getElementById("drag-sasamat");
    sasamat_id.ondragstart = gmap_activities.startDragFromOutside(sasamat_parameters);
  }

  function setStevestonOuting() {
    var steveston_parameters = STEVESTON_OUTING;
    var steveston_id = document.getElementById("drag-steveston");
    steveston_id.ondragstart = gmap_activities.startDragFromOutside(steveston_parameters);
  }

  function setNorthShoreOuting() {
    var north_shore_parameters = NORTH_SHORE_OUTING;
    var north_shore_id = document.getElementById("drag-north-shore");
    north_shore_id.ondragstart = gmap_activities.startDragFromOutside(north_shore_parameters);
  }

  function setStanleyOuting() {
    var stanley_parameters = STANLEY_PARK_OUTING;
    var stanley_id = document.getElementById("drag-stanley");
    stanley_id.ondragstart = gmap_activities.startDragFromOutside(stanley_parameters);
  }

  var showNumberLocations = function () {
    var locations_div = document.getElementById("number-activities");
    var number_locations = gmap_activities.numberLocations();
    if (number_locations === 0) {
      number_locations = "";
    }
    locations_div.innerHTML = number_locations + " activities";
  };

  function prepareModifyDrag(e_ignored) {
    var location_id = getIdVal("location-id");
    var location_outing = getIdVal("location-outing");
    if (location_outing === "undefined" || location_outing === "false" || location_outing === "") {
      location_outing = false;
    } else {
      location_outing = true;
    }
    var location_svg = getIdVal("location-svg");
    var location_lat = parseFloat(getIdVal("location-lat"));
    var location_lng = parseFloat(getIdVal("location-lng"));
    var location_color = getIdVal("location-color");
    var location_title = getIdVal("location-title");
    var location_content = getIdVal("location-content");
    var location_extra = getIdVal("location-extra");
    var modify_parameters = {
      location_id: location_id,
      group_type: location_outing,
      marker_svg: location_svg,
      lat: location_lat,
      lng: location_lng,
      pin_color: location_color,
      title_text: location_title,
      content_text: location_content,
      extra_text: location_extra,
    };
    document.getElementById("dragging_modified_title").innerHTML = location_title;
    document.getElementById("dragging_modified_content").innerHTML = location_content;
    var mod_drag = document.getElementById("mod_drag");
    mod_drag.ondragstart = gmap_activities.startDragFromOutside(modify_parameters);
    mod_drag.style.display = "block";
  }

  function reSizeOutings(e_ignored) {
    var number_locations = gmap_activities.numberLocations();
    if (number_locations > 0) {
      gmap_activities.reboundMap();
    }
  }

  function hideOutingInfo() {
    var activity_locations = gmap_activities.filterByUndefProperty("group_type");
    for (let location_index in activity_locations) {
      const a_location = activity_locations[location_index];
      gmap_activities.locationHideInfo(a_location.location_id);
    }
  }

  function showOutingInfo() {
    var activity_locations = gmap_activities.locationsGetAll();
    for (let location_index in activity_locations) {
      const a_location = activity_locations[location_index];
      gmap_activities.locationShowInfo(a_location.location_id);
    }
    gmap_activities.reboundMap();
  }

  function drawShapeStar(from_location, to_locations) {
    let star_pattern = [];
    if (from_location.lat !== undefined) {
      star_pattern.push(from_location);
      for (let a_to_location of to_locations) {
        star_pattern.push(a_to_location);
        star_pattern.push(from_location);
      }
    }
    return star_pattern;
  }

  function getOutingDistanceStar(lat_lng_obj) {
    let a_location;
    var colored_locations = this.filterByPropertyValue("pin_color", lat_lng_obj.pin_color);
    if (colored_locations.length === 0) {
      return false;
    }
    for (let location_index in colored_locations) {
      a_location = colored_locations[location_index];
      if (a_location.group_type) {
        break;
      }
    }
    lat_lng_obj.extra_text = KmsDistance.getKms(lat_lng_obj, a_location);
    console.log(" lat_lng_obj.extra_text ", lat_lng_obj.extra_text);
    return 0; // DO_NOT_PROCESS_NEXT_ITEM_IN_GROUP
  }

  function generateMemberStar(lat_lng_obj) {
    const outing_color = lat_lng_obj.pin_color;
    let new_lat_lng = Object.assign({}, lat_lng_obj);
    let location_id = this._unixTimeId();
    const input_id = this._unixTimeId();
    delete new_lat_lng.group_type;
    new_lat_lng.content_text = this.labelInput(location_id, "Activity", "gmap_activities", input_id);

    new_lat_lng.title_text = "";
    new_lat_lng.location_id = location_id;
    new_lat_lng.pin_color = outing_color;
    delete new_lat_lng.marker_svg;
    this.getOutingDistance(new_lat_lng);
    this.locationAdd(new_lat_lng);
    this.drawPolyline(outing_color);
    document.getElementById(input_id).focus();
  }

  let gmap_activities = ReactDOM.render(
    <GmapGroups google_map_key={GOOGLE_MAP_KEY} map_locations={activity_locations} map_options={activity_options} />,
    document.getElementById(map_id)
  );

  gmap_activities.drawShape = drawShapeStar;
  gmap_activities.getOutingDistance = getOutingDistanceStar;
  gmap_activities.generateMember = generateMemberStar;

  gmap_activities.SvgButtons = SvgButtons;
  gmap_activities.GmapDragDrop = GmapDragDrop;

  gmap_activities.NORTH_SHORE_OUTING = NORTH_SHORE_OUTING;
  gmap_activities.SASAMAT_OUTING = SASAMAT_OUTING;
  gmap_activities.STEVESTON_OUTING = STEVESTON_OUTING;
  gmap_activities.STANLEY_PARK_OUTING = STANLEY_PARK_OUTING;

  gmap_activities.clearOutings = clearOutings;
  gmap_activities.dropOnActivityDelete = dropOnActivityDelete;
  gmap_activities.setIdVal = setIdVal;
  gmap_activities.getIdVal = getIdVal;

  gmap_activities.dropOnModify = dropOnModify;

  gmap_activities.prepareModifyDrag = prepareModifyDrag;
  gmap_activities.reSizeOutings = reSizeOutings;
  gmap_activities.hideOutingInfo = hideOutingInfo;
  gmap_activities.showOutingInfo = showOutingInfo;

  setInterval(showNumberLocations, 1000);
  setSasamatOuting();
  setStevestonOuting();
  setNorthShoreOuting();
  setStanleyOuting(); /// NB these are not yet connected to any objects, just free floating, this is undefined

  var svg_buttons = SvgButtons;
  svg_buttons.do_delete(delete_options);
  svg_buttons.clear_all(clear_all_activities);
  svg_buttons.resizeHover(resize_activities);
  svg_buttons.resizeHideInfo(hide_activities);
  svg_buttons.resizeShowInfo(show_activities);
  svg_buttons.do_edit(edit_options);
  svg_buttons.upMarkerHover(drag_edit_options);
  svg_buttons.orcaHover(steveston_options);
  svg_buttons.swimHover(sasamat_options);
  svg_buttons.waterHover(north_shore_options);
  svg_buttons.parkHover(stanley_options);
  return gmap_activities;
}

window.activitiesMap = activitiesMap;

export default activitiesMap;