From 2fc782bec3429c440696a64634127010fed61d20 Mon Sep 17 00:00:00 2001 From: ISA Date: Thu, 23 May 2024 11:54:29 +0200 Subject: [PATCH] Koordinaten in poiLayer in Popup entfernt, wird nicht gebraucht --- components/MapComponent.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/MapComponent.js b/components/MapComponent.js index 05cab5d54..884859a22 100644 --- a/components/MapComponent.js +++ b/components/MapComponent.js @@ -925,12 +925,20 @@ const MapComponent = ({ locations, onLocationUpdate }) => { // Popup konfigurieren marker.bindPopup(` +
+ ${location.description || "Unbekannt"}
+ Type: ${poiTypName}
+
+ `); + /** + marker.bindPopup(`
${location.description || "Unbekannt"}
Type: ${poiTypName}
Lat: ${latitude.toFixed(5)}, Lng: ${longitude.toFixed(5)}
`); + */ // Event-Handler hinzufügen marker.on("mouseover", function () {