Files
leim-maps/src/types/Leaflet.ts
2025-01-12 18:59:05 +01:00

36 lines
796 B
TypeScript

export type MapMarkerGroup = "capitals" | "cities" | "towns" | "landmarks" | "quests" | "custom";
export type MapMarkerIcon = "castle" | "flag" | "graduation-cap" | "location-pin" | "monument" | "push-pin" | "house"
export type MapCoords = {
x: number,
y: number,
}
export type MapMarker = {
title: string,
markerCoords: MapCoords,
description?: string,
link?: string,
mapId?: string,
group?: MapMarkerGroup,
icon?: MapMarkerIcon,
cover?: string,
coverLink?: string,
coverAuthor?: string,
coverPortrait?: boolean
}
export type PlayerMarker = {
title: string,
markerCoords: MapCoords,
description?: string,
link?: string,
}
export type CustomMarker = {
lat: number,
lon: number,
title: string,
icon: Object
}