Commit e44c7b7d authored by Sarath's avatar Sarath

Allow click only on states with data

parent 518db8ac
Pipeline #3213541 passed with stage
in 9 seconds
......@@ -129,7 +129,9 @@ function resetHighlight(e) {
}
function zoomToFeature(e) {
map.fitBounds(e.target.getBounds());
if (shutdowns.stateWise[e.target.feature.properties.name]) {
map.fitBounds(e.target.getBounds());
}
}
function onEachFeature(feature, layer) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment