From ab1537b46935f7b58b209afbe216c735da4b096c Mon Sep 17 00:00:00 2001 From: Max Kohler Date: Sun, 7 Sep 2025 22:52:31 +0200 Subject: [PATCH 1/8] Add story --- .../src/maplibre/MapStyle/SWRDataLabLight.ts | 1 + .../VectorLayer/VectorLayer.stories.svelte | 23 ++++++ .../maplibre/VectorLayer/sample-points.json | 75 +++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 components/src/maplibre/VectorLayer/sample-points.json diff --git a/components/src/maplibre/MapStyle/SWRDataLabLight.ts b/components/src/maplibre/MapStyle/SWRDataLabLight.ts index 57aa324b..7169c263 100644 --- a/components/src/maplibre/MapStyle/SWRDataLabLight.ts +++ b/components/src/maplibre/MapStyle/SWRDataLabLight.ts @@ -35,6 +35,7 @@ const style: styleFunction = (opts) => { name: 'swr-datalab-light', metadata: { license: 'https://creativecommons.org/publicdomain/zero/1.0/' }, glyphs: 'https://static.datenhub.net/maps/fonts/{fontstack}/{range}.pbf', + sprite: 'https://demotiles.maplibre.org/styles/osm-bright-gl-style/sprite', sources: { 'versatiles-osm': { attribution: diff --git a/components/src/maplibre/VectorLayer/VectorLayer.stories.svelte b/components/src/maplibre/VectorLayer/VectorLayer.stories.svelte index 74464abf..8da2aa11 100644 --- a/components/src/maplibre/VectorLayer/VectorLayer.stories.svelte +++ b/components/src/maplibre/VectorLayer/VectorLayer.stories.svelte @@ -5,6 +5,8 @@ import DesignTokens from '../../DesignTokens/DesignTokens.svelte'; import AttributionControl from '../AttributionControl/AttributionControl.svelte'; import VectorTileSource from '../VectorTileSource/VectorTileSource.svelte'; + import GeoJsonSource from '../GeoJSONSource/GeoJSONSource.svelte'; + import SamplePoints from './sample-points.json'; import { SWRDataLabLight } from '../MapStyle'; @@ -57,6 +59,27 @@ + + +
+ + + + + +
+
+
+