feat: auto-update and restore layers

This commit is contained in:
Azgaar 2024-09-09 22:01:38 +02:00
parent 3925a38de0
commit aca4f4c5fb
2 changed files with 5 additions and 1 deletions

View file

@ -950,5 +950,9 @@ export function resolveVersionConflicts(mapVersion) {
// v1.104.00 removed some layers from initial render
viewbox.select("#armies").style("display", null);
viewbox.select("#ice").style("display", null);
// v1.104.00 added featurePaths to defs
const featurePaths = defs.select("#featurePaths");
if (!featurePaths.size()) defs.append("g").attr("id", "featurePaths");
}
}