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