Skip to content

Commit e0c6503

Browse files
committed
make mysterious locations more prominent on the interactive map
1 parent d93798c commit e0c6503

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

LegendsViewer.Frontend/legends-viewer-frontend/src/generated/api-schema.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14032,7 +14032,7 @@ export interface components {
1403214032
/** @enum {string} */
1403314033
SitePropertyType: "Unknown" | "House";
1403414034
/** @enum {string} */
14035-
SiteType: "Unknown" | "Cave" | "Fortress" | "ForestRetreat" | "DarkFortress" | "Town" | "Hamlet" | "Vault" | "DarkPits" | "Hillocks" | "Tomb" | "Tower" | "MountainHalls" | "Camp" | "Lair" | "Labyrinth" | "Shrine" | "ImportantLocation" | "Fort" | "Monastery" | "Castle";
14035+
SiteType: "Unknown" | "Cave" | "Fortress" | "ForestRetreat" | "DarkFortress" | "Town" | "Hamlet" | "Vault" | "DarkPits" | "Hillocks" | "Tomb" | "Tower" | "MountainHalls" | "Camp" | "Lair" | "Labyrinth" | "Shrine" | "ImportantLocation" | "Fort" | "Monastery" | "Castle" | "MysteriousPalace" | "MysteriousDungeon" | "MysteriousLair";
1403614036
Size: {
1403714037
readonly isEmpty?: boolean;
1403814038
/** Format: int32 */

LegendsViewer.Frontend/legends-viewer-frontend/src/views/Map.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export type SiteType = components['schemas']['SiteType'];
1717
interface MarkerConfig {
1818
shape: 'circle' | 'triangle' | 'square' | 'pentagon' | 'hexagon' | 'star';
1919
size?: number;
20+
color?: string;
2021
}
2122
2223
const siteTypeMarkers: Record<SiteType, MarkerConfig> = {
@@ -44,6 +45,11 @@ const siteTypeMarkers: Record<SiteType, MarkerConfig> = {
4445
Fort: { shape: 'triangle' },
4546
Tomb: { shape: 'triangle' },
4647
48+
// Mysterious
49+
MysteriousLair: { shape: 'square', size: 2, color: '#AAAAFF' },
50+
MysteriousDungeon: { shape: 'pentagon', color: '#AAAAFF' },
51+
MysteriousPalace: { shape: 'hexagon', size: 4, color: '#AAAAFF' },
52+
4753
// Nature (Kobolds often start there)
4854
Cave: { shape: 'circle' },
4955
@@ -69,7 +75,7 @@ const siteTypeMarkers: Record<SiteType, MarkerConfig> = {
6975
7076
function createMarker(siteType: SiteType, siteColor: string | null | undefined, latlng: L.LatLngExpression): L.Layer {
7177
const config = siteTypeMarkers[siteType];
72-
const color = siteColor || "#666"
78+
const color = config?.color ?? siteColor ?? "#666"
7379
const size = config?.size ?? 3;
7480
switch (config?.shape) {
7581
case 'circle':

0 commit comments

Comments
 (0)