adding new locations to the dropdown day trips map
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 2 Mar 2017 15:47:03 +0000 (10:47 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 2 Mar 2017 15:47:03 +0000 (10:47 -0500)
map.php
parts/interactive-map.php

diff --git a/map.php b/map.php
index 20caa37..c5e0697 100644 (file)
--- a/map.php
+++ b/map.php
          <path class="cls-5" d="M194.82,390c.12,0,5.9,0,5.9,0a8.36,8.36,0,0,1-3.52-2.94c-.64-.65-.32-2.25-1-3.54-1-1-1.61-1.93-2.89-1.29-.32.32,0,1.61,0,2.25-.64-.32-1.93.32-1.93-.32-.32-1.29-1.93-1.61-1.93-1.29a6.17,6.17,0,0,0,0,5.79c.64,1.29,2.89.32,4.18,1C194.11,390.1,194.77,389.89,194.82,390Z" transform="translate(0 0)" />
          <path class="cls-6" d="M278.11,325.64" transform="translate(0 0)" />
          <path class="cls-6" d="M295.18,318.85" transform="translate(0 0)" />
-<!--
-         <text class="cls-7" transform="translate(104.81 58.5)">
-            <tspan class="cls-8">T</tspan>
-            <tspan x="4.64" y="0">ahquamenon Falls</tspan>
-         </text>
--->
-<!--
-         <text class="cls-7" transform="translate(407.67 122.15)">
-            CANAD
-            <tspan class="cls-9" x="31.19" y="0">A</tspan>
-         </text>
--->
-<!--
-         <text class="cls-7" transform="translate(136.02 292.87)">Sturgeon Bay Dunes</text>
-         <text class="cls-7" transform="translate(338.48 96.42)">
-            Soo Locks
-            <tspan class="cls-8" x="46.08" y="0">T</tspan>
-            <tspan x="50.72" y="0">ours</tspan>
-         </text>
-         <text class="cls-7" transform="translate(11.67 89.15)">Pictured Rocks</text>
-         <text class="cls-7" transform="translate(268.75 375.93)">
-            Cross in
-            <tspan x="0" y="9.25">the</tspan>
-            <tspan class="cls-10" x="15.36" y="9.25">W</tspan>
-            <tspan x="23.36" y="9.25">oods</tspan>
-         </text>
-         <text class="cls-7" transform="translate(305.37 356.21)">
-            Big Bear
-            <tspan x="0" y="9.25">Adventures</tspan>
-         </text>
-         <text class="cls-7" transform="translate(10 201.36)">
-            Big Spring
-            <tspan x="0" y="9.25">(Kitch-iti-kipi)</tspan>
-         </text>
-         <text class="cls-7" transform="translate(316.61 60.32)">
-            Agawa Canyon
-            <tspan class="cls-8" x="0" y="9.25">T</tspan>
-            <tspan x="4.64" y="9.25">our</tspan>
-            <tspan class="cls-11" x="20.95" y="9.25">T</tspan>
-            <tspan x="25.76" y="9.25">rain</tspan>
-         </text>
--->
+
          <path class="cls-12" d="M277.68,325.33" transform="translate(0 0)" />
          <path class="cls-12" d="M294.74,318.54" transform="translate(0 0)" />
          <text id="818" class="cls-13" transform="translate(104.37 58.2)">
             Tahquamenon Falls
          </text>
-<!--
-         <text class="cls-7" transform="translate(90.42 24.03)">
-            Great Lakes Shipwreck Museum &amp;
-            <tspan x="0" y="9.25">Whitefish Point Light Station</tspan>
-         </text>
--->
+
          <text id="816" class="cls-13" transform="translate(89.99 23.72)">
             Great Lakes Shipwreck Museum &amp; 
             <tspan x="0" y="9.25">Whitefish Point Light Station</tspan>
          </text>
          <text id="831" class="cls-13" transform="translate(167.48 340.59)">
             Tunnel of Trees
-<!--
-            <tspan x="4.64" y="0">unnel of</tspan>
-            <tspan class="cls-11" x="40.63" y="0">T</tspan>
-            <tspan x="45.43" y="0">rees</tspan>
--->
+
          </text>
          <text id="821" class="cls-13" transform="translate(338.05 96.11)">
             Soo Locks Tours
-        
-<!--            <tspan x="50.72" y="0">ours</tspan>-->
          </text>
+         <text id="1233" class="cls-13" transform="translate(338.05 115.11)">
+            Tower of History-
+            <tspan x="0" y="9.25">Museum Ship Valley</tspan>
+            <tspan class="camp-tspan" x="0" y="20.25">Camp</tspan>
+         </text>
+        
          <text id="837" class="cls-13" transform="translate(11.24 88.85)">Pictured Rocks</text>
          <text id="835" class="cls-13" transform="translate(250.32 375.63)">
             Cross in
             <tspan class="cls-16" x="48.3" y="15.26">T</tspan>
             <tspan class="cls-17" x="59.94" y="15.26">Y</tspan>
          </text>
+
+     <text id="1226" transform="matrix(1 0 0 1 161.5495 191.6735)" class="cls-13 st3 st5 st6">Garlyn Zoo</text>
+     <text id="1220" class="cls-13" transform="translate(5.99 250.72)">
+            Fayette Historical &amp; 
+            <tspan x="0" y="9.25">State Park</tspan>
+    </text>
+
 <!--
-         <text class="cls-7" transform="translate(6.33 126.28)">
-            Riptide
-            <tspan x="0" y="9.25">Ride</tspan>
-         </text>
+     <text class="cls-13 st7 st5 st6" transform="matrix(1 0 0 1 3.9032 249.3909)">Fayette Historical </text>
+     <text class="cls-13 st7 st5 st6" transform="matrix(1 0 0 1 3.9032 260.3909)">State Park</text>
 -->
          <text id="825" class="cls-13" transform="translate(5.9 125.98)">
             Riptide
             <tspan x="0" y="9.25">Ride</tspan>
          </text>
          <line class="cls-19" x1="270.64" y1="274.27" x2="255.95" y2="249.9" />
+         <path class="cls-20" d="M252.82,244.71a30.38,30.38,0,0,0,8.53,4.89l-5,1-3.2,3.95A30.38,30.38,0,0,0,252.82,244.71Z" transform="translate(-65 -50)" />
+         <line class="cls-19" x1="270.64" y1="274.27" x2="190.95" y2="200.9" />
          <path class="cls-20" d="M252.82,244.71a30.38,30.38,0,0,0,8.53,4.89l-5,1-3.2,3.95A30.38,30.38,0,0,0,252.82,244.71Z" transform="translate(0 0)" />
          <line class="cls-19" x1="270.39" y1="274.14" x2="238.87" y2="288.46" />
          <path class="cls-20" d="M233.35,291a30.37,30.37,0,0,0,5.84-7.9l.4,5.06,3.55,3.64A30.36,30.36,0,0,0,233.35,291Z" transform="translate(0 0)" />
index e6b0660..1346de1 100644 (file)
@@ -79,17 +79,21 @@ $js_sites = json_encode($sites);
                } catch(e){
                    console.log("This page doesn't exist or it has the wrong id in the pages array");
                }
-                   
-               if( $(this).find('tspan').attr('y') === '9.25'){
-                   $(this).find('tspan').attr('y', '14.25');
+                
+               
+               if( $(this).children('tspan').attr('y') === '9.25'){
+                   $(this).children('tspan').not('.camp-tspan').attr('y', '14.25');
                } else {
                    $(this).css('font-size', '16px');
                }
                
+               $(this).find( $('.camp-tspan') ).attr('y', '25.25');
+               
            }, 
            function(){
+                $(this).find( $('.camp-tspan') ).attr('y', '20.25');
                if( $(this).find('tspan').attr('y') === '14.25'){
-                   $(this).find('tspan').attr('y', '9.25');
+                   $(this).find('tspan').not('.camp-tspan').attr('y', '9.25');
                } else {
                    $(this).css('font-size', '11px');
                }