diff --git a/components/src/maplibre/AttributionControl/AttributionControl.stories.svelte b/components/src/maplibre/AttributionControl/AttributionControl.stories.svelte index f474f8b4..7dd19dd8 100644 --- a/components/src/maplibre/AttributionControl/AttributionControl.stories.svelte +++ b/components/src/maplibre/AttributionControl/AttributionControl.stories.svelte @@ -14,7 +14,7 @@
- +
diff --git a/components/src/maplibre/GeocoderControl/GeocoderControl.stories.svelte b/components/src/maplibre/GeocoderControl/GeocoderControl.stories.svelte index 4b1fee48..dd08e38f 100644 --- a/components/src/maplibre/GeocoderControl/GeocoderControl.stories.svelte +++ b/components/src/maplibre/GeocoderControl/GeocoderControl.stories.svelte @@ -33,7 +33,7 @@ >
- +
@@ -58,7 +58,7 @@ >
- +
- +
- + @@ -79,7 +79,7 @@
-{Object.entries({ ...center, zoom, allowZoom, allowRotation }) +{Object.entries({ ...center, zoom, pitch, allowZoom, allowRotation }) .map(([key, val]) => `${key}: ${val}`) .join('\n')} {/if} diff --git a/components/src/maplibre/MapControl/MapControl.stories.svelte b/components/src/maplibre/MapControl/MapControl.stories.svelte index dd223829..6c6aefad 100644 --- a/components/src/maplibre/MapControl/MapControl.stories.svelte +++ b/components/src/maplibre/MapControl/MapControl.stories.svelte @@ -24,7 +24,7 @@ }); const themes: ThemeMap = { - 'SWRDL Light': SWRDataLabLight, + 'SWRDL Light': SWRDataLabLight(), Eclipse: eclipseStyle }; diff --git a/components/src/maplibre/MapStyle/SWRDataLabLight.mdx b/components/src/maplibre/MapStyle/SWRDataLabLight.mdx index 5e50951a..946f44e6 100644 --- a/components/src/maplibre/MapStyle/SWRDataLabLight.mdx +++ b/components/src/maplibre/MapStyle/SWRDataLabLight.mdx @@ -12,14 +12,38 @@ Light-themed general-purpose basemap using SWR colours and typefaces based on - Data sources - Vector data: [versatiles-osm](https://download.versatiles.org/) in the [Shortbread schema](https://shortbread-tiles.org/) served from `tiles.versatiles.org` + - Building footprints with heights: [basemap-de](https://basemap.de/produkte-und-dienste/web-vektor/) vector tiles served from `sgx.geodatenzentrum.de` - Typefaces: SWR Sans served from `https://static.datenhub.net/maps/fonts/`. -- Layer count: {SWRDataLabLight.layers.length} +- Layer count: {SWRDataLabLight({enableBuildingExtrusions: true}).layers.length} (including building extrusions)
-### Design Notes +## Usage + +Call `SWRDataLabLight()` to construct a style document and pass the result to the `` component's `style` prop. + +```jsx + + +... +``` + +`SWRDataLabLight()` takes an optional `options` parameter of the following shape: + +```ts +interface StyleOptions { + enableBuildingExtrusions?: boolean; +} +``` + +## Design Notes We take a two-step design approach: diff --git a/components/src/maplibre/MapStyle/SWRDataLabLight.stories.svelte b/components/src/maplibre/MapStyle/SWRDataLabLight.stories.svelte index 60848f94..256b001e 100644 --- a/components/src/maplibre/MapStyle/SWRDataLabLight.stories.svelte +++ b/components/src/maplibre/MapStyle/SWRDataLabLight.stories.svelte @@ -17,7 +17,7 @@
@@ -27,6 +27,29 @@
+ + +
+
+ + + + +
+
+
+