From e7c008dcc7c473fecb76bd4fca357a597891c07d Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 15 Jan 2019 16:07:06 -0500 Subject: [PATCH] changing the click behavior for the county on click function, making it so it goes to the associated page --- views/front/map/display.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/views/front/map/display.html b/views/front/map/display.html index b7f3abf..a78e0ed 100644 --- a/views/front/map/display.html +++ b/views/front/map/display.html @@ -12,8 +12,13 @@ // 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}; @@ -137,7 +142,9 @@ } }, mouseout: resetSelectedCounty, - click: zoomToCounty + click: function(){ + window.location = page; + } }); // Get center of the county and add offsets var center = countyLayer.getBounds().getCenter(); -- 2.17.1