Skip to content

Commit

Permalink
fix firefox bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
blackdotbug committed Jul 24, 2024
1 parent 715d87a commit 568319c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions industries.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
flex-direction: column;
flex-wrap: wrap;
height: 50vh;
min-width: 270px;
}
div.legend.transit h3 {
width: 120px;
Expand Down Expand Up @@ -267,16 +268,17 @@
return div;
}
transitLayerControl.addTo(map);
console.log(transit_subgroups)
d3.selectAll("div.toggles input").on("change", (e)=>{
console.log(e.target.value, e.target.checked);
let selected = transit_subgroups.find(f => f.label === e.target.value);
if (e.target.checked) {
selected.layer.addTo(map);
} else {
selected.layer.removeFrom(map);
}
})
d3.selectAll("div.toggles label.entry span").on("click", (e) =>{
L.DomEvent.stopPropagation(e);
})
layerControl.addTo(map);
});
const clusterLegend = L.control({position: "bottomleft"})
Expand Down
5 changes: 3 additions & 2 deletions progress.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,16 +265,17 @@
return div;
}
transitLayerControl.addTo(map);
console.log(transit_subgroups)
d3.selectAll("div.toggles input").on("change", (e)=>{
console.log(e.target.value, e.target.checked);
let selected = transit_subgroups.find(f => f.label === e.target.value);
if (e.target.checked) {
selected.layer.addTo(map);
} else {
selected.layer.removeFrom(map);
}
})
d3.selectAll("div.toggles label.entry span").on("click", (e) =>{
L.DomEvent.stopPropagation(e);
})
layerControl.addTo(map);
});

Expand Down

0 comments on commit 568319c

Please sign in to comment.