allows removing hillshade

This commit is contained in:
Christian Beutel
2025-07-04 11:57:30 +02:00
parent e923ec45a4
commit 247f02c2fc
3 changed files with 4 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ const SettingsCreateSchema = z.object({
}).optional().nullable(),
category: z.string().optional(),
tilesets: z.array(z.object({ name: z.string(), url: z.string().url() })).optional().nullable(),
terrain: z.object({ terrain: z.string().url(), hillshading: z.string().url() }).optional().nullable(),
terrain: z.object({ terrain: z.string().url().or(z.literal('')).optional(), hillshading: z.string().url().or(z.literal('')).optional() }).optional().nullable(),
user: z.string().optional(),
privacy: z.object({
account: z.enum(["public", "private"]),

View File

@@ -22,7 +22,7 @@ class Settings {
location?: { name: string, lat: number, lon: number } | null;
category?: string;
tilesets?: ({ name: string, url: string }[]) | null
terrain?: { terrain: string, hillshading: string } | null;
terrain?: { terrain?: string, hillshading?: string } | null;
user?: string;
privacy?: { account: "public" | "private", trails: "public" | "private", lists: "public" | "private" } | null
notifications?: Record<NotificationType, { web: boolean, email: boolean }> | null