From c78ee22f16f2be5d14b67ab340da61c7bdf0b069 Mon Sep 17 00:00:00 2001 From: ISA Date: Wed, 26 Jun 2024 15:26:45 +0200 Subject: [PATCH] Lines colors ok, tooltip ok, update ok --- components/MapComponent.js | 43 ++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/components/MapComponent.js b/components/MapComponent.js index a964d0a4e..3ebe4e2f9 100644 --- a/components/MapComponent.js +++ b/components/MapComponent.js @@ -2179,23 +2179,34 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => { if (matchingLine) { colorsByModule[matchingLine.idModul] = stat.PrioColor; newTooltipContents[matchingLine.idModul] = ` -
- ${stat.ModulName || "Unknown"}
- - ModulName : ${stat.ModulTyp || "N/A"} -
- - - - ${stat.Message || "N/A"} - - - - (${stat.PrioName || "N/A"}) -
-
- +
+ ${stat.ModulName || "Unknown"} +
+ ${stat.ModulTyp || "N/A"} +
+
+ + ${stat.Message || "N/A"} +
+ (${stat.PrioName || "N/A"}) +
+
`; + + /* newTooltipContents[matchingLine.idModul] = ` +
+ ${stat.ModulName || "Unknown"} +
+ ${stat.ModulTyp || "N/A"} +
+
+ + ${stat.Message || "N/A"} +
+ (${stat.PrioName || "N/A"}) +
+
+ `; */ } });