From c763f1d250343010ac474726e3c48e2c718b5b1f Mon Sep 17 00:00:00 2001 From: Max Kohler Date: Tue, 7 Apr 2026 15:08:16 +0200 Subject: [PATCH] Implement fix --- components/src/maplibre/Map/Map.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/src/maplibre/Map/Map.svelte b/components/src/maplibre/Map/Map.svelte index 4c1c534..2d48b73 100644 --- a/components/src/maplibre/Map/Map.svelte +++ b/components/src/maplibre/Map/Map.svelte @@ -8,7 +8,7 @@ import { type Location } from '../types'; - import { onMount, onDestroy, type Snippet, getContext, hasContext } from 'svelte'; + import { onMount, onDestroy, type Snippet, getContext } from 'svelte'; import { createMapContext, MapContext } from '../context.svelte.js'; import FallbackStyle from './FallbackStyle'; @@ -21,7 +21,7 @@ */ initialBounds?: LngLatBoundsLike; maxBounds?: LngLatBoundsLike; - initialLocation?: Location; + initialLocation?: Partial; allowPan?: boolean; allowRotation?: boolean; allowZoom?: boolean; @@ -85,7 +85,7 @@ // 2. initialLocation prop // 3. initialLocation context (notably set by ) - let contextLocation = getContext('initialLocation'); + let contextLocation: Location = getContext('initialLocation'); let initialLocation = $derived({ lat: 51.3,