Fix building static site
This commit is contained in:
parent
67c5cb977a
commit
8ae3f6543d
@ -2,7 +2,6 @@
|
|||||||
import { onMount, onDestroy } from 'svelte';
|
import { onMount, onDestroy } from 'svelte';
|
||||||
import { browser } from '$app/environment';
|
import { browser } from '$app/environment';
|
||||||
import { createEventDispatcher } from 'svelte';
|
import { createEventDispatcher } from 'svelte';
|
||||||
import * as leafletControlGeocoder from 'leaflet-control-geocoder';
|
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
@ -31,6 +30,7 @@
|
|||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
if (browser) {
|
if (browser) {
|
||||||
const leaflet = await import('leaflet');
|
const leaflet = await import('leaflet');
|
||||||
|
const leafletControlGeocoder = await import('leaflet-control-geocoder');
|
||||||
|
|
||||||
map = leaflet.map(mapElement);
|
map = leaflet.map(mapElement);
|
||||||
// TODO: Pick a better spot
|
// TODO: Pick a better spot
|
||||||
|
Loading…
Reference in New Issue
Block a user