2026-08-19 17:11:58 +03:00
|
|
|
export const faktiskaStations = [
|
|
|
|
|
"Liepāja", "Ventspils", "Stende", "Saldus", "Rīga", "Jelgava", "Ainaži",
|
|
|
|
|
"Valmiera", "Madona", "Alūksne", "Zīlāni", "Daugavpils", "Rēzekne",
|
|
|
|
|
] as const;
|
|
|
|
|
|
|
|
|
|
export type FaktiskaStation = typeof faktiskaStations[number];
|
|
|
|
|
|
2026-08-19 17:44:46 +03:00
|
|
|
export type FaktiskaMarkerLayout = {
|
|
|
|
|
iconSide: "left" | "right";
|
|
|
|
|
iconGap: number;
|
|
|
|
|
iconOffsetX: number;
|
|
|
|
|
iconOffsetY: number;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const rightMarker = (): FaktiskaMarkerLayout => ({
|
|
|
|
|
iconSide: "right",
|
|
|
|
|
iconGap: 22,
|
2026-08-19 17:53:05 +03:00
|
|
|
// Daira's canvas advance box contains substantial empty space before the
|
|
|
|
|
// visible artwork. Pull the optically measured glyph back toward its badge.
|
2026-08-19 21:22:55 +03:00
|
|
|
iconOffsetX: -50,
|
|
|
|
|
iconOffsetY: 90,
|
2026-08-19 17:44:46 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// These placements are part of the fixed newsroom template. Operators select
|
|
|
|
|
// the glyph; the renderer owns its position relative to the temperature badge.
|
|
|
|
|
export const faktiskaMarkerLayout: Record<FaktiskaStation, FaktiskaMarkerLayout> = {
|
|
|
|
|
"Liepāja": rightMarker(),
|
|
|
|
|
"Ventspils": rightMarker(),
|
|
|
|
|
"Stende": rightMarker(),
|
|
|
|
|
"Saldus": rightMarker(),
|
|
|
|
|
"Rīga": rightMarker(),
|
|
|
|
|
"Jelgava": rightMarker(),
|
|
|
|
|
"Ainaži": rightMarker(),
|
|
|
|
|
"Valmiera": rightMarker(),
|
|
|
|
|
"Madona": rightMarker(),
|
|
|
|
|
"Alūksne": rightMarker(),
|
|
|
|
|
"Zīlāni": rightMarker(),
|
|
|
|
|
"Daugavpils": rightMarker(),
|
|
|
|
|
"Rēzekne": rightMarker(),
|
|
|
|
|
};
|
|
|
|
|
|
2026-08-19 17:11:58 +03:00
|
|
|
export const faktiskaExport = {
|
|
|
|
|
width: 3840,
|
|
|
|
|
height: 1440,
|
|
|
|
|
mapType: "map_3840x1440_wind" as const,
|
|
|
|
|
};
|