feat(gma): GMA-Werte aus Measurements-Redux im Marker-Tooltip angezeigt

- createAndSetDevices.js erweitert mit dynamischer GMA-Zuordnung
- Tooltip für System 11 zeigt LT, FBT, GT, RLF
- GMA-Zuordnung über gmaMap basierend auf Na und IdLD
- Version auf 1.1.232 erhöht
This commit is contained in:
ISA
2025-06-04 12:14:14 +02:00
parent d80b36cb2d
commit f4342e17ef
6 changed files with 126 additions and 48 deletions

View File

@@ -101,10 +101,21 @@ export const createAndSetDevices = async (
// ✅ Tooltip (nur für System 11)
if (station.System === 11 && messung) {
const lt = messung["LT"] ?? "-";
const fbt = messung["FBT"] ?? "-";
const gt = messung["GT"] ?? "-";
const rlf = messung["RLF"] ?? "-";
const gmaMap = new Map();
measurementData?.forEach(m => {
if (!gmaMap.has(m.IdLD)) {
gmaMap.set(m.IdLD, {});
}
const mapEntry = gmaMap.get(m.IdLD);
mapEntry[m.Na] = m.Val; // z.B. mapEntry["FBT"] = 6
});
const gmaValues = gmaMap.get(station.IdLD) ?? {};
const lt = gmaValues["LT"] ?? "-";
const fbt = gmaValues["FBT"] ?? "-";
const gt = gmaValues["GT"] ?? "-";
const rlf = gmaValues["RLF"] ?? "-";
const gmaTooltipHtml = `
<div class="p-0 rounded-lg bg-white bg-opacity-90 tooltip-content">