Skip to content

Commit 2df639c

Browse files
committed
Highlight all synthesized-network countries on shield status map
1 parent 7e9c396 commit 2df639c

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

doc-img/shield_map_world.svg

Lines changed: 3 additions & 2 deletions
Loading

scripts/status_map.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ function fillPaths(svg, codes) {
1313
// Routes in United States insular areas use US prefix with the U.S.
1414
selectors.add(".ust");
1515
}
16-
// Great Britain uses OpenMapTiles special processing
17-
selectors.add(".gb");
1816
return svg.replace(".supported", new Array(...selectors).join(",\n"));
1917
}
2018

@@ -27,9 +25,9 @@ let worldSVG = fs.readFileSync(`${process.cwd()}/scripts/blank_map_world.svg`, {
2725
worldSVG = fillPaths(
2826
worldSVG,
2927
Object.keys(shields)
30-
.map((network) => network.match(/^(\w\w)(?::|$)/))
28+
.map((network) => network.match(/^(\w\w)(?::|$)|^omt-(\w\w)-/))
3129
.filter((m) => m)
32-
.map((m) => m[1])
30+
.map((m) => m[1] || m[2])
3331
);
3432
worldSVG = worldSVG.replace(
3533
/<title>.+?<\/title>/,

0 commit comments

Comments
 (0)