This commit is contained in:
nub31
2026-03-16 23:50:53 +01:00
parent f686c4a7d2
commit 1e1e829e2d
5 changed files with 26 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
import { onDestroy, onMount } from "svelte";
import "leaflet/dist/leaflet.css";
import { twMerge } from "tailwind-merge";
import L from "leaflet";
interface MarkerPoint {
latitude: number;
@@ -15,10 +16,8 @@
let map: L.Map | null = null;
let markers: L.Marker<any>[] = [];
var icon: L.Icon;
let L: typeof import("leaflet/index");
onMount(async () => {
L = await import("leaflet");
icon = L.icon({
iconUrl: "/map_marker.png",