major performance improvements map

This commit is contained in:
Christian Beutel
2025-04-14 20:22:39 +02:00
parent a1296ebacd
commit 5390b9cf72
9 changed files with 165 additions and 17 deletions

View File

@@ -27,6 +27,7 @@ class Trail {
tags: string[];
waypoints: string[];
summit_logs: string[];
polyline?: string;
expand?: {
tags?: Tag[]
category?: Category;
@@ -165,6 +166,7 @@ interface TrailSearchResult {
created: number;
public: boolean;
thumbnail: string;
polyline?: string;
shares?: string[];
tags?: string[]
gpx: string;
@@ -174,6 +176,29 @@ interface TrailSearchResult {
};
}
export const defaultTrailSearchAttributes = [
"id",
"author",
"author_name",
"author_avatar",
"name",
"description",
"location",
"distance",
"elevation_gain",
"elevation_loss",
"duration",
"difficulty",
"category",
"completed",
"date",
"created",
"public",
"thumbnail",
"gpx",
"tags",
"_geo",]
export { Trail };