fixing leaflet server tile ids on hover
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 16 Jan 2019 21:07:37 +0000 (16:07 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 16 Jan 2019 21:07:37 +0000 (16:07 -0500)
views/front/map/display.html

index daca178..51cb3e6 100644 (file)
         });
         $("#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',
                     countyLayer.on({
                         mouseover: function(e){
                             var layer = e.target;
-                         
+                            
                             layer.setStyle({
                                 weight: 3,
                                 color: location.hover_color,
                         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",