Refactoring: move 'GetDefaultIcon' into its own Svelte-class

This commit is contained in:
Pieter Vander Vennet 2025-01-02 03:56:42 +01:00
parent 46ac716395
commit 335906b481
13 changed files with 97 additions and 80 deletions

View file

@ -119,7 +119,7 @@ class AddIconSummary extends DesugaringStep<{ raw: LayerConfigJson; parsed: Laye
const pointRendering: PointRenderingConfig = layerConfig.mapRendering.find((pr) =>
pr.location.has("point")
)
const defaultTags = layerConfig.GetBaseTags()
const defaultTags = layerConfig.baseTags
fixed["_layerIcon"] = Utils.NoNull(
(pointRendering?.marker ?? []).map((i) => {
const icon = i.icon?.GetRenderValue(defaultTags)?.txt