WIP: POI Update

This commit is contained in:
ISA
2024-09-12 22:56:59 +02:00
parent b364d056f1
commit 5295dfec62
9 changed files with 135 additions and 107 deletions

View File

@@ -76,12 +76,13 @@ export const setupPOIs = async (
marker.bindPopup(`
<div>
<b class="text-xl text-black-700">${location.description || "Unbekannt"}</b><br>
${deviceName}<br>
${deviceName || "unbekannt"} <br>
${poiTypName}<br>
</div>
`);
marker.on("mouseover", function () {
console.log("Device Name:", deviceName); // Debugging
handlePoiSelect(
{
id: location.idPoi,
@@ -92,12 +93,10 @@ export const setupPOIs = async (
},
setSelectedPoi,
setLocationDeviceData,
setDeviceName,
setDeviceName, // Stelle sicher, dass dies korrekt funktioniert
poiLayerRef,
poiTypMap
);
setCurrentPoi(location);
this.openPopup();
localStorage.setItem("lastElementType", "marker");
localStorage.setItem("markerLink", this.options.link);