From: Anthony Talarico Date: Wed, 16 Jan 2019 21:07:37 +0000 (-0500) Subject: fixing leaflet server tile ids on hover X-Git-Tag: v1.0.0^2~14 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=655fb89e188cca836a239669e6f4b3cf3e1b9694;p=WP-Plugins%2Fglm-member-db-county-map.git fixing leaflet server tile ids on hover --- 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",