From 47df585cfbdeb84d9a2f1b3228fc60b8a36aaafc Mon Sep 17 00:00:00 2001 From: Max Kohler Date: Thu, 21 May 2026 09:32:10 +0200 Subject: [PATCH 1/2] Block out fix --- .../src/maplibre/GeocoderControl/GeocoderControl.mdx | 1 + .../GeocoderControl/GeocoderControl.stories.svelte | 2 +- .../src/maplibre/GeocoderControl/GeocoderControl.svelte | 7 +++++-- components/src/maplibre/Tooltip/Tooltip.svelte | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 components/src/maplibre/GeocoderControl/GeocoderControl.mdx diff --git a/components/src/maplibre/GeocoderControl/GeocoderControl.mdx b/components/src/maplibre/GeocoderControl/GeocoderControl.mdx new file mode 100644 index 00000000..72c90666 --- /dev/null +++ b/components/src/maplibre/GeocoderControl/GeocoderControl.mdx @@ -0,0 +1 @@ +county: kreis, municipality: gemeinde, region: bundesland diff --git a/components/src/maplibre/GeocoderControl/GeocoderControl.stories.svelte b/components/src/maplibre/GeocoderControl/GeocoderControl.stories.svelte index 832bcff5..09291e34 100644 --- a/components/src/maplibre/GeocoderControl/GeocoderControl.stories.svelte +++ b/components/src/maplibre/GeocoderControl/GeocoderControl.stories.svelte @@ -123,7 +123,7 @@ diff --git a/components/src/maplibre/GeocoderControl/GeocoderControl.svelte b/components/src/maplibre/GeocoderControl/GeocoderControl.svelte index dcdfec6e..157916b1 100644 --- a/components/src/maplibre/GeocoderControl/GeocoderControl.svelte +++ b/components/src/maplibre/GeocoderControl/GeocoderControl.svelte @@ -25,7 +25,7 @@ */ countries?: GeocodingCountry | GeocodingCountry[]; /** - * Limit search to one or more result type + * Limit search to one or more result type. */ types?: GeocodingPlaceType | GeocodingPlaceType[]; /** @@ -86,6 +86,9 @@ button { cursor: pointer; } + * { + box-sizing: border-box; + } } .maplibre-gl-geocoder--error { @@ -138,7 +141,7 @@ left: -1px; list-style: none; position: absolute; - width: 100%; + width: calc(100% + 2px); top: 100%; z-index: 1000; overflow: hidden; diff --git a/components/src/maplibre/Tooltip/Tooltip.svelte b/components/src/maplibre/Tooltip/Tooltip.svelte index 7e16a921..764dca08 100644 --- a/components/src/maplibre/Tooltip/Tooltip.svelte +++ b/components/src/maplibre/Tooltip/Tooltip.svelte @@ -43,7 +43,7 @@ closeButton: showCloseButton, closeOnClick: closeOnClick, maxWidth: `${maxWidth}px`, - offset: offset + offset }); let el: Node | undefined = $state(); @@ -85,6 +85,7 @@ .mouseEvents { pointer-events: all; } + :global { .maplibregl-popup { top: 0; From 444cd6ac8491683c259c854414c7caccde5896df Mon Sep 17 00:00:00 2001 From: Max Kohler Date: Thu, 21 May 2026 13:19:25 +0200 Subject: [PATCH 2/2] Extend docs --- .../GeocoderControl/GeocoderControl.mdx | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/components/src/maplibre/GeocoderControl/GeocoderControl.mdx b/components/src/maplibre/GeocoderControl/GeocoderControl.mdx index 72c90666..b4d13201 100644 --- a/components/src/maplibre/GeocoderControl/GeocoderControl.mdx +++ b/components/src/maplibre/GeocoderControl/GeocoderControl.mdx @@ -1 +1,24 @@ -county: kreis, municipality: gemeinde, region: bundesland +import { Story, Meta, Primary, Controls, Stories } from '@storybook/addon-docs/blocks'; + +import * as GeocoderControlStories from './GeocoderControl.stories.svelte'; + + + +# GeocoderControl + + + + +## Maptiler + +Maptiler doesn't allow filtering by German admin boundaries, but its `types` seem to map as follows: + + + + + + + + + +
typeboundary
countyKreis
municipalityGemeinde
regionBundesland