From f711426ce7a38ec63b550135cd7c034bcb29afad Mon Sep 17 00:00:00 2001 From: Max Kohler Date: Mon, 13 Oct 2025 16:25:47 +0200 Subject: [PATCH 1/2] Fix style --- components/src/maplibre/MapStyle/SWRDataLabLight.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/src/maplibre/MapStyle/SWRDataLabLight.ts b/components/src/maplibre/MapStyle/SWRDataLabLight.ts index b78845ca..3581adde 100644 --- a/components/src/maplibre/MapStyle/SWRDataLabLight.ts +++ b/components/src/maplibre/MapStyle/SWRDataLabLight.ts @@ -124,7 +124,7 @@ const style: styleFunction = (opts) => { // 7. Labels ...walkingLabels, - ...roadLabels, + ...(options.roads?.showLabels ? roadLabels : []), // 8. Building extrusions ...(options.enableBuildingExtrusions ? [buildingExtrusions] : []), From 26854237025767a9e7e7ae98c2ec24f3e944a97a Mon Sep 17 00:00:00 2001 From: Max Kohler Date: Mon, 13 Oct 2025 16:30:18 +0200 Subject: [PATCH 2/2] Include walking labels in the setting --- components/src/maplibre/MapStyle/SWRDataLabDark.ts | 2 +- components/src/maplibre/MapStyle/SWRDataLabLight.stories.svelte | 2 +- components/src/maplibre/MapStyle/SWRDataLabLight.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/src/maplibre/MapStyle/SWRDataLabDark.ts b/components/src/maplibre/MapStyle/SWRDataLabDark.ts index 9f6e747a..4ad91158 100644 --- a/components/src/maplibre/MapStyle/SWRDataLabDark.ts +++ b/components/src/maplibre/MapStyle/SWRDataLabDark.ts @@ -126,7 +126,7 @@ const style: styleFunction = (opts) => { ...admin, // 7. Labels - ...walkingLabels, + ...(options.roads?.showLabels ? walkingLabels : []), ...(options.roads?.showLabels ? roadLabels : []), // 8. Building extrusions diff --git a/components/src/maplibre/MapStyle/SWRDataLabLight.stories.svelte b/components/src/maplibre/MapStyle/SWRDataLabLight.stories.svelte index a1219a93..3244c7de 100644 --- a/components/src/maplibre/MapStyle/SWRDataLabLight.stories.svelte +++ b/components/src/maplibre/MapStyle/SWRDataLabLight.stories.svelte @@ -257,7 +257,7 @@
diff --git a/components/src/maplibre/MapStyle/SWRDataLabLight.ts b/components/src/maplibre/MapStyle/SWRDataLabLight.ts index 3581adde..9cf2e036 100644 --- a/components/src/maplibre/MapStyle/SWRDataLabLight.ts +++ b/components/src/maplibre/MapStyle/SWRDataLabLight.ts @@ -123,7 +123,7 @@ const style: styleFunction = (opts) => { ...admin, // 7. Labels - ...walkingLabels, + ...(options.roads?.showLabels ? walkingLabels : []), ...(options.roads?.showLabels ? roadLabels : []), // 8. Building extrusions