diff --git a/web-frontend/src/lib/Map.svelte b/web-frontend/src/lib/Map.svelte index 5f3e00b..ee03b98 100644 --- a/web-frontend/src/lib/Map.svelte +++ b/web-frontend/src/lib/Map.svelte @@ -2,7 +2,6 @@ import { onMount, onDestroy } from 'svelte'; import { browser } from '$app/environment'; import { createEventDispatcher } from 'svelte'; - import * as leafletControlGeocoder from 'leaflet-control-geocoder'; const dispatch = createEventDispatcher(); @@ -31,6 +30,7 @@ onMount(async () => { if (browser) { const leaflet = await import('leaflet'); + const leafletControlGeocoder = await import('leaflet-control-geocoder'); map = leaflet.map(mapElement); // TODO: Pick a better spot