changing the click behavior for the county on click function, making it so it goes...
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 15 Jan 2019 21:07:06 +0000 (16:07 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 15 Jan 2019 21:07:06 +0000 (16:07 -0500)
views/front/map/display.html

index b7f3abf..a78e0ed 100644 (file)
 
         // Create map with default center and size
         var countyMap = L.map('area-map',{
-            gestureHandling: true
+            gestureHandling: true,
+     
         }).setView([46.45, -87.0], 8);
+
+
+
+
         var countiesDirectory = '{$assets}/counties/';
             // Tile Server URL
             var tileServer = 'https://maps.gaslightmedia.com/12312029-NoPlaceNames-95bfebd37e9e7d649daafa8762629084/'+ {literal}'{z}/{x}/{y}.png'{/literal};
                             }
                         },
                         mouseout: resetSelectedCounty,
-                        click: zoomToCounty
+                        click: function(){
+                            window.location = page;
+                        }
                     });
                     // Get center of the county and add offsets
                     var center = countyLayer.getBounds().getCenter();