From 5e84d35120fd54e06d53ea039cc6b55efc7fcbd4 Mon Sep 17 00:00:00 2001 From: ISA Date: Fri, 26 Apr 2024 10:18:47 +0200 Subject: [PATCH] =?UTF-8?q?Drucker=20in=20Sonstige=20ist=20noch=20nicht=20?= =?UTF-8?q?im=20Spiderfy=20,=20das=20muss=20auch=20id=20den=20Kreis=20sich?= =?UTF-8?q?=20anordnen=20und=20nicht=20in=20die=20Mitte.=20OverlappingMark?= =?UTF-8?q?erSpiderfier=20oms=20muss=20noch=20f=C3=BCr=20Sonstige=20implem?= =?UTF-8?q?entieren=20oms.addMarker(marker);?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/MapComponent.js | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/components/MapComponent.js b/components/MapComponent.js index da389dd41..56dc43d5d 100644 --- a/components/MapComponent.js +++ b/components/MapComponent.js @@ -1009,28 +1009,28 @@ const MapComponent = ({ locations, onLocationUpdate }) => { // Tooltip beim Überfahren mit der Maus anzeigen marker.bindTooltip( ` -
+
${area_name}
-
- LT : ${measurements.LT} °C +
+ LT : ${measurements.LT} °C +
+
+ FBT : ${measurements.FBT} °C +
+
+ GT : ${measurements.GT === "nicht ermittelbar" ? measurements.GT : `${measurements.GT} °C`} +
+
+ RLF : ${measurements.RLF} % +
-
- FBT : ${measurements.FBT} °C -
-
- GT : ${measurements.GT === "nicht ermittelbar" ? measurements.GT : `${measurements.GT} °C`} -
-
- RLF : ${measurements.RLF} % -
-
`, { - permanent: true, // true würde den Tooltip immer anzeigen - direction: "auto", // oder 'top', 'bottom', 'left', 'right' - offset: [20, 0], + permanent: true, // Tooltip wird ständig angezeigt + direction: "auto", // Automatische Ausrichtung + offset: [20, 0], // Offset-Werte } ); @@ -1096,6 +1096,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => { if (map && dauzMarkers.length) { dauzMarkers.forEach((marker) => { marker.addTo(map); + oms.addMarker(marker); // Popup beim Überfahren mit der Maus öffnen und schließen marker.on("mouseover", function () { @@ -1115,6 +1116,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => { if (map && smsfunkmodemMarkers.length) { smsfunkmodemMarkers.forEach((marker) => { marker.addTo(map); + oms.addMarker(marker); // Popup beim Überfahren mit der Maus öffnen und schließen marker.on("mouseover", function () { @@ -1134,6 +1136,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => { if (map && ulafMarkers.length) { ulafMarkers.forEach((marker) => { marker.addTo(map); + oms.addMarker(marker); // Popup beim Überfahren mit der Maus öffnen und schließen marker.on("mouseover", function () { @@ -1153,6 +1156,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => { if (map && sonstigeMarkers.length) { sonstigeMarkers.forEach((marker) => { marker.addTo(map); + oms.addMarker(marker); // Popup beim Überfahren mit der Maus öffnen und schließen marker.on("mouseover", function () {