diff --git a/components/MapComponent.js b/components/MapComponent.js index a04a9dec8..9106327bd 100644 --- a/components/MapComponent.js +++ b/components/MapComponent.js @@ -304,12 +304,13 @@ const MapComponent = ({ locations, onLocationUpdate }) => { id: location.idPoi, }); - marker.bindPopup( - `${location.description || "Unbekannt"}
Type: ${location.idPoiTyp || "N/A"}
Lat: ${latitude.toFixed(5)}, Lng: ${longitude.toFixed(5)}` - ); + /* marker.bindPopup( + `
${location.description || "Unbekannt"}
Type: ${location.idPoiTyp || "N/A"}
Lat: ${latitude.toFixed(5)}, Lng: ${longitude.toFixed(5)}
`, + { permanent: false, closeButton: true } + ); */ marker.bindTooltip( - `
${location.description}
`, - { permanent: false, direction: "top" } + `
${location.description || "Unbekannt"}
Type: ${location.idPoiTyp || "N/A"}
Lat: ${latitude.toFixed(5)}, Lng: ${longitude.toFixed(5)}
`, + { permanent: false, direction: "top", offset: [0, -30] } ); marker.on("dragend", function (e) {