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

@@ -464,9 +464,7 @@
}, },
layout: { layout: {
"text-field": "{point_count_abbreviated}", "text-field": "{point_count_abbreviated}",
"text-font": [ "text-font": ["Noto Sans Regular"],
"Noto Sans Regular",
],
"text-size": 12, "text-size": 12,
}, },
}); });
@@ -1013,7 +1011,7 @@
); );
} }
if (showTerrain) { if (showTerrain && page.data.settings?.terrain?.terrain) {
map!.addControl( map!.addControl(
new M.TerrainControl({ new M.TerrainControl({
source: "terrain", source: "terrain",

View File

@@ -14,7 +14,7 @@ const SettingsCreateSchema = z.object({
}).optional().nullable(), }).optional().nullable(),
category: z.string().optional(), category: z.string().optional(),
tilesets: z.array(z.object({ name: z.string(), url: z.string().url() })).optional().nullable(), 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(), user: z.string().optional(),
privacy: z.object({ privacy: z.object({
account: z.enum(["public", "private"]), account: z.enum(["public", "private"]),

View File

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