diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index 47aae088a..9ddf96398 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -1360,9 +1360,6 @@ class Awards extends CI_Controller { } } - // DC is combined with MD - copy MD status to DC for map display - $states['DC'] = $states['MD']; - header('Content-Type: application/json'); echo json_encode($states); } diff --git a/assets/js/sections/wasmap.js b/assets/js/sections/wasmap.js index ca6649ef0..282eea7cd 100644 --- a/assets/js/sections/wasmap.js +++ b/assets/js/sections/wasmap.js @@ -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); }); },