From 56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 11 Feb 2026 20:10:43 -0800 Subject: format --- src/components/LocationsMap.svelte | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) (limited to 'src/components/LocationsMap.svelte') diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte index 3ec50e38..23da473e 100644 --- a/src/components/LocationsMap.svelte +++ b/src/components/LocationsMap.svelte @@ -181,11 +181,8 @@ maplibrePromise = new Promise((resolve, reject) => { const existing = document.querySelector("script[data-maplibre]"); if (existing) { - if ((window as any).maplibregl) - return resolve((window as any).maplibregl); - existing.addEventListener("load", () => - resolve((window as any).maplibregl), - ); + if ((window as any).maplibregl) return resolve((window as any).maplibregl); + existing.addEventListener("load", () => resolve((window as any).maplibregl)); existing.addEventListener("error", reject); return; } @@ -285,27 +282,20 @@ onDestroy(() => map && map.remove()); let list = $derived( search - ? markers.filter((m) => - m.tags.name.toLowerCase().includes(search.toLowerCase()), - ) + ? markers.filter((m) => m.tags.name.toLowerCase().includes(search.toLowerCase())) : inview, );
-
+
@@ -318,12 +308,10 @@
{#if search} {:else} - + {/if}
@@ -354,11 +342,9 @@ aria-label={timeout ? "Resume map" : "Pause map"} > {#if timeout} - + {:else} - + {/if}
-- cgit v1.2.3