refactor: drawPrecipitation

This commit is contained in:
Azgaar 2024-09-04 22:53:14 +02:00
parent b3dc8da683
commit 7d461aa8f1
7 changed files with 18 additions and 14 deletions

View file

@ -440,7 +440,7 @@ async function parseLoadedData(data, mapVersion) {
if (hasChildren(temperature)) turnOn("toggleTemperature");
if (hasChild(population, "line")) turnOn("togglePopulation");
if (hasChildren(ice)) turnOn("toggleIce");
if (hasChild(prec, "circle")) turnOn("togglePrec");
if (hasChild(prec, "circle")) turnOn("togglePrecipitation");
if (isVisible(emblems) && hasChild(emblems, "use")) turnOn("toggleEmblems");
if (isVisible(labels)) turnOn("toggleLabels");
if (isVisible(icons)) turnOn("toggleIcons");