From 655fb89e188cca836a239669e6f4b3cf3e1b9694 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 16 Jan 2019 16:07:37 -0500 Subject: [PATCH] fixing leaflet server tile ids on hover --- views/front/map/display.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/views/front/map/display.html b/views/front/map/display.html index daca178..51cb3e6 100644 --- a/views/front/map/display.html +++ b/views/front/map/display.html @@ -159,14 +159,14 @@ }); $("#island-map").hover( function(){ - countyMap._layers[154].setStyle({ + countyMap._layers[144].setStyle({ weight: 3, color: "#003366", dashArray: '', fillOpacity: 0.1 }) }, function(){ - countyMap._layers[154].setStyle({ + countyMap._layers[144].setStyle({ weight: 2, color: "#000000", dashArray: '6', @@ -199,7 +199,7 @@ countyLayer.on({ mouseover: function(e){ var layer = e.target; - + layer.setStyle({ weight: 3, color: location.hover_color, @@ -269,8 +269,8 @@ mouseover: function(e){ var layer = e.target; - - if(layer._leaflet_id == 154){ + console.log(layer); + if(layer._leaflet_id == 144){ {literal} $("#island-map").css({ "border-style":"solid", "border-color" : "#003366", -- 2.17.1