From 13466248004327e9a026cb89f94926f9b060d1c1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 11 Feb 2026 17:51:24 -0800 Subject: linting --- src/components/LocationsMap.svelte | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'src/components/LocationsMap.svelte') diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte index 26f32ee8..3ec50e38 100644 --- a/src/components/LocationsMap.svelte +++ b/src/components/LocationsMap.svelte @@ -181,21 +181,22 @@ 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; } const css = document.createElement("link"); css.rel = "stylesheet"; - css.href = - "https://unpkg.com/maplibre-gl@5.7.1/dist/maplibre-gl.css"; + css.href = "https://unpkg.com/maplibre-gl@5.7.1/dist/maplibre-gl.css"; document.head.appendChild(css); const script = document.createElement("script"); - script.src = - "https://unpkg.com/maplibre-gl@5.7.1/dist/maplibre-gl.js"; + script.src = "https://unpkg.com/maplibre-gl@5.7.1/dist/maplibre-gl.js"; script.async = true; script.defer = true; script.dataset.maplibre = "true"; @@ -299,11 +300,12 @@ >
@@ -316,10 +318,12 @@
{#if search} {:else} - + {/if}
@@ -350,9 +354,11 @@ aria-label={timeout ? "Resume map" : "Pause map"} > {#if timeout} - + {:else} - + {/if} -- cgit v1.2.3