fixes trail update

This commit is contained in:
Christian Beutel
2024-02-23 17:13:43 +01:00
parent 2543390c3a
commit 90a683f268
23 changed files with 727 additions and 419 deletions

View File

@@ -193,7 +193,6 @@
reader.readAsText(selectedFile);
reader.onload = async function (e) {
trail.set(new Trail(""));
await addGPXLayer(e.target?.result as string);
const closestCity = (await ms.index("cities500").search("", {
filter: [`_geoRadius(${$form.lat}, ${$form.lon}, 10000)`],
@@ -450,7 +449,7 @@
on:change={handlePhotoSelection}
/>
{#each $form.photos ?? [] as photo, i}
<div class="shrink-0 grow-0 basis-auto">
<div class="shrink-0 grow-0 basis-auto m-2">
<PhotoCard
src={photo}
on:delete={() => handlePhotoDelete(i)}