aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/LocationsMap.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-11 17:51:24 -0800
committerAdam Soltys <[email protected]>2026-02-11 17:51:24 -0800
commit13466248004327e9a026cb89f94926f9b060d1c1 (patch)
tree47b4972c33809ccdf866b043c92cd3e0ecf5dcd0 /src/components/LocationsMap.svelte
parent3aa9ce1b5985397d7f568887ec6f881df13c1034 (diff)
downloadcoinos-ui-13466248004327e9a026cb89f94926f9b060d1c1.tar.gz
coinos-ui-13466248004327e9a026cb89f94926f9b060d1c1.zip
linting
Diffstat (limited to 'src/components/LocationsMap.svelte')
-rw-r--r--src/components/LocationsMap.svelte30
1 files changed, 18 insertions, 12 deletions
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/[email protected]/dist/maplibre-gl.css";
+ css.href = "https://unpkg.com/[email protected]/dist/maplibre-gl.css";
document.head.appendChild(css);
const script = document.createElement("script");
- script.src =
- "https://unpkg.com/[email protected]/dist/maplibre-gl.js";
+ script.src = "https://unpkg.com/[email protected]/dist/maplibre-gl.js";
script.async = true;
script.defer = true;
script.dataset.maplibre = "true";
@@ -299,11 +300,12 @@
></div>
<div class="absolute flex top-2 left-2 gap-2">
<button
- aria-label="Back"
+ aria-label="Back"
class="rounded-full border-2 border-black bg-base-100/80 w-16 h-16 flex items-center justify-center"
onclick={back}
>
- <iconify-icon noobserver icon="ph:arrow-left-bold" width="24"></iconify-icon>
+ <iconify-icon noobserver icon="ph:arrow-left-bold" width="24"
+ ></iconify-icon>
</button>
</div>
<div class="relative">
@@ -316,10 +318,12 @@
<div class="flex gap-1 absolute right-6 top-3">
{#if search}
<button type="button" onclick={clearSearch} aria-label="Clear">
- <iconify-icon noobserver icon="ph:x-bold" width="32"></iconify-icon>
+ <iconify-icon noobserver icon="ph:x-bold" width="32"
+ ></iconify-icon>
</button>
{:else}
- <iconify-icon noobserver icon="ph:search-bold" width="32"></iconify-icon>
+ <iconify-icon noobserver icon="ph:search-bold" width="32"
+ ></iconify-icon>
{/if}
</div>
</div>
@@ -350,9 +354,11 @@
aria-label={timeout ? "Resume map" : "Pause map"}
>
{#if timeout}
- <iconify-icon noobserver icon="ph:pause-bold" width="24"></iconify-icon>
+ <iconify-icon noobserver icon="ph:pause-bold" width="24"
+ ></iconify-icon>
{:else}
- <iconify-icon noobserver icon="ph:play-bold" width="24"></iconify-icon>
+ <iconify-icon noobserver icon="ph:play-bold" width="24"
+ ></iconify-icon>
{/if}
</button>
</div>