Small fixes to improve local loading

This commit is contained in:
Pieter Vander Vennet 2022-06-21 16:47:54 +02:00
parent 9392731e46
commit c5a6b803ec
4 changed files with 19 additions and 5 deletions

View file

@ -100,7 +100,7 @@ export class UpdateLegacyLayer extends DesugaringStep<LayerConfigJson | string |
delete config["wayHandling"]
delete config["hideUnderlayingFeaturesMinPercentage"]
for (const mapRenderingElement of config.mapRendering) {
for (const mapRenderingElement of (config.mapRendering ?? [])) {
if (mapRenderingElement["iconOverlays"] !== undefined) {
mapRenderingElement["iconBadges"] = mapRenderingElement["iconOverlays"]
}