36 lines
796 B
TypeScript
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
|
|
}
|