Revert "Ice Layer Data Model (#1262)"

This reverts commit e597d905eb.
This commit is contained in:
Azgaar 2026-01-22 17:50:23 +01:00 committed by GitHub
parent e597d905eb
commit 26259bd579
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 118 additions and 402 deletions

View file

@ -406,7 +406,6 @@ async function parseLoadedData(data, mapVersion) {
pack.cells.province = data[27] ? Uint16Array.from(data[27].split(",")) : new Uint16Array(pack.cells.i.length);
// data[28] had deprecated cells.crossroad
pack.cells.routes = data[36] ? JSON.parse(data[36]) : {};
pack.ice = data[39] ? JSON.parse(data[39]) : [];
if (data[31]) {
const namesDL = data[31].split("/");
@ -450,7 +449,7 @@ async function parseLoadedData(data, mapVersion) {
if (isVisible(routes) && hasChild(routes, "path")) turnOn("toggleRoutes");
if (hasChildren(temperature)) turnOn("toggleTemperature");
if (hasChild(population, "line")) turnOn("togglePopulation");
if (isVisible(ice)) turnOn("toggleIce");
if (hasChildren(ice)) turnOn("toggleIce");
if (hasChild(prec, "circle")) turnOn("togglePrecipitation");
if (isVisible(emblems) && hasChild(emblems, "use")) turnOn("toggleEmblems");
if (isVisible(labels)) turnOn("toggleLabels");