Koordinaten in poiLayer in Popup entfernt, wird nicht gebraucht

This commit is contained in:
ISA
2024-05-23 11:54:29 +02:00
parent b9e06a3320
commit 2fc782bec3

View File

@@ -925,12 +925,20 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
// Popup konfigurieren
marker.bindPopup(`
<div>
<b class="text-xl text-black-700">${location.description || "Unbekannt"}</b><br>
Type: ${poiTypName}<br>
</div>
`);
/**
marker.bindPopup(`
<div>
<b class="text-xl text-black-700">${location.description || "Unbekannt"}</b><br>
Type: ${poiTypName}<br>
Lat: ${latitude.toFixed(5)}, Lng: ${longitude.toFixed(5)}
</div>
`);
*/
// Event-Handler hinzufügen
marker.on("mouseover", function () {