Skip to content

Commit

Permalink
Added Curaçao more durably to shield coverage map
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Jun 26, 2022
1 parent 845181d commit e35d423
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc-img/shield_map_world.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions scripts/status_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import * as ShieldDef from "../src/js/shield_defs.js";

function fillPaths(svg, codes) {
let selectors = new Set(codes.map((code) => `.${code.toLowerCase()}`));
if (selectors.has(".nl")) {
// Curaçao routes use NL prefix with the Netherlands.
selectors.add(".cw");
}
return svg.replace(".supported", new Array(...selectors).join(",\n"));
}

Expand Down

0 comments on commit e35d423

Please sign in to comment.