allows removing hillshade
This commit is contained in:
@@ -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"]),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user