fix: update type definitions and improve renderer initialization in draw-relief-icons

This commit is contained in:
Azgaar 2026-03-11 00:51:56 +01:00
parent 828534ebd9
commit ffe350bca8
4 changed files with 19 additions and 13 deletions

View file

@ -80,7 +80,7 @@ function processFeatureRegeneration(event, button) {
drawStateLabels();
} else if (button === "regenerateReliefIcons") {
generateReliefIcons();
if (!layerIsOn("toggleRelief")) toggleRelief();
layerIsOn("toggleRelief") ? drawRelief() : toggleRelief();
} else if (button === "regenerateRoutes") {
regenerateRoutes();
if (!layerIsOn("toggleRoutes")) toggleRoutes();