WIP: POI Update
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user