From 9ff4323ec68021d4d6c32598f103fddf95d0a445 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Fri, 4 Feb 2022 03:31:47 +0100 Subject: [PATCH 1/2] Fix typo --- Logic/Actors/AvailableBaseLayersImplementation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Logic/Actors/AvailableBaseLayersImplementation.ts b/Logic/Actors/AvailableBaseLayersImplementation.ts index 0e9a29ad0..80cdb9c18 100644 --- a/Logic/Actors/AvailableBaseLayersImplementation.ts +++ b/Logic/Actors/AvailableBaseLayersImplementation.ts @@ -103,7 +103,7 @@ export default class AvailableBaseLayersImplementation implements AvailableBaseL id: id, name: name, layer: () => L.tileLayer.provider(id, { - maxNativeZoom: layer.opttions.maxZoom + maxNativeZoom: layer.options?.maxZoom }), min_zoom: 1, max_zoom: layer.options.maxZoom, From b08adc7fc9d0e469b1184a99805824819589b739 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Fri, 4 Feb 2022 13:17:50 +0100 Subject: [PATCH 2/2] Fix loading of custom themes --- Logic/DetermineLayout.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Logic/DetermineLayout.ts b/Logic/DetermineLayout.ts index 3c4c82742..4dcb1c1d7 100644 --- a/Logic/DetermineLayout.ts +++ b/Logic/DetermineLayout.ts @@ -143,8 +143,8 @@ export default class DetermineLayout { tagRenderings: SharedTagRenderings.SharedTagRenderingJson, sharedLayers: knownLayersDict } - json = new FixLegacyTheme().convertStrict(converState, json, "While loading a dynamic theme") - json = new PrepareTheme().convertStrict(converState, json, "While preparing a dynamic theme") + json = new FixLegacyTheme().convertStrict(json, "While loading a dynamic theme") + json = new PrepareTheme(converState).convertStrict(json, "While preparing a dynamic theme") console.log("The layoutconfig is ", json) return json }