Park Tiles look as the only base map theme: the old ONLINE_STYLE_PATCH palette and the theme switch are gone, the legend at /symbols.html shows the one look, and the docs carry the sampled Park Tiles colors
This commit is contained in:
1 parent
07b623b7ca
commit
59a29e86a5
8 files changed
+76
-227
No files matched your search
+4
-5
@@ -31,9 +31,9 @@
|
||||
<body>
|
||||
<section class="legend">
|
||||
<h2>Map legend</h2>
|
||||
<p>How the base map draws each feature in its two themes (Base map panel → Theme), read from the actual patched style.</p>
|
||||
<p>How the base map (colors after the NPS Park Tiles style) draws each feature, read from the actual patched style.</p>
|
||||
<table>
|
||||
<thead><tr><th>Feature</th><th>Maptool</th><th>NPS Park Tiles</th></tr></thead>
|
||||
<thead><tr><th>Feature</th><th>Look</th></tr></thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</section>
|
||||
@@ -127,10 +127,9 @@
|
||||
}
|
||||
|
||||
const template = await fetch("/vendor/liberty-style/liberty.json").then((response) => response.json());
|
||||
const themes = ["maptool", "parktiles"].map((theme) =>
|
||||
Object.fromEntries(patchOnlineStyle(structuredClone(template), theme).layers.map((l) => [l.id, l])));
|
||||
const layers = Object.fromEntries(patchOnlineStyle(template).layers.map((l) => [l.id, l]));
|
||||
document.querySelector(".legend tbody").innerHTML = ROWS.map(([label, id, casingId]) =>
|
||||
`<tr><td>${label} <code>${id}</code></td>${themes.map((layers) => swatch(layers, id, casingId)).join("")}</tr>`).join("");
|
||||
`<tr><td>${label} <code>${id}</code></td>${swatch(layers, id, casingId)}</tr>`).join("");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user