diff --git a/components/src/maplibre/GeocoderControl/GeocoderControl.mdx b/components/src/maplibre/GeocoderControl/GeocoderControl.mdx new file mode 100644 index 00000000..b4d13201 --- /dev/null +++ b/components/src/maplibre/GeocoderControl/GeocoderControl.mdx @@ -0,0 +1,24 @@ +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
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;