Handle DC for WAS counting

This commit is contained in:
phl0
2025-12-02 08:39:37 +01:00
parent 0f1301126d
commit 4ca7bb4635
2 changed files with 9 additions and 3 deletions

View File

@@ -97,6 +97,15 @@ function load_was_map() {
]).then(([states48, ak, hi]) => {
// Inject AK and HI features into the FeatureCollection
states48.features.push(ak.features[0], hi.features[0]);
// Remove DC from 48 states pulled from geojson which are 49 states actually
i=0;
for (k in states48.features) {
if (states48.features[k].id == 'DC') {
states48.features.splice(i, 1);
break;
}
i++;
}
load_was_map2(data, states48);
});
},