full settings overhaul

This commit is contained in:
Christian Beutel
2024-07-05 18:14:31 +02:00
parent 6522b06e96
commit d0a408983b
47 changed files with 4355 additions and 551 deletions

View File

@@ -5,6 +5,8 @@ class Settings {
language?: "en" | "de" | "fr" | "hu"| "it" | "nl" | "pl" | "pt" | "zh";
mapFocus?: "trails" | "location";
location?: { name: string, lat: number, lon: number };
category?: string;
tilesets?: {name: string, url: string}[]
user?: string;
constructor(
@@ -13,7 +15,9 @@ class Settings {
mapFocus: "trails" | "location",
user: string,
params?: {
location: { name: string, lat: number, lon: number }
location?: { name: string, lat: number, lon: number }
category?: string
tilesets?: {name: string, url: string}[]
}
) {
this.unit = unit;
@@ -21,6 +25,8 @@ class Settings {
this.mapFocus = mapFocus;
this.user = user;
this.location = params?.location;
this.category = params?.category;
this.tilesets = params?.tilesets ?? [];
}
}