updates trail panel view

This commit is contained in:
Christian Beutel
2025-01-27 19:38:38 +01:00
parent 5922034183
commit e837b6e04b
25 changed files with 427 additions and 182 deletions

View File

@@ -1,3 +1,4 @@
import type { icons } from "$lib/util/icon_util";
import * as M from "maplibre-gl";
class Waypoint {
@@ -6,14 +7,15 @@ class Waypoint {
description?: string;
lat: number;
lon: number;
icon?: string;
distance_from_start?: number;
icon?: typeof icons[number];
marker?: M.Marker;
photos: string[];
_photos?: File[];
author: string;
constructor(lat: number, lon: number, params?: {
id?: string, name?: string, description?: string, icon?: string, marker?: M.Marker, photos?: string[];
id?: string, name?: string, description?: string, icon?: typeof icons[number], marker?: M.Marker, photos?: string[];
}) {
this.id = params?.id;
this.name = params?.name ?? "";