Kommentare entfernt, was nicht benötigt wird

This commit is contained in:
ISA
2025-03-11 07:52:27 +01:00
parent f59fb62d29
commit a846bd14ce
5 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
// /utils/polylines/eventHandlers.js
export function enablePolylineEvents(polylines, lineColors) {
if (!polylines || polylines.length === 0) {
console.warn("Keine Polylinien vorhanden oder polylines ist undefined.");
//console.warn("Keine Polylinien vorhanden oder polylines ist undefined.");
return;
}

View File

@@ -23,7 +23,7 @@ import { forceCloseContextMenu } from "../../redux/slices/polylineContextMenuSli
//--------------------------------------------
export const setupPolylines = (map, linePositions, lineColors, tooltipContents, setNewCoords, tempMarker, currentZoom, currentCenter, polylineVisible) => {
if (!polylineVisible) {
console.warn("Polylines deaktiviert - keine Zeichnung");
//console.warn("Polylines deaktiviert - keine Zeichnung");
return { markers: [], polylines: [] };
}
@@ -312,7 +312,7 @@ export const setupPolylines = (map, linePositions, lineColors, tooltipContents,
document.addEventListener("click", function handleOutsideClick(event) {
if (!event.target.closest(".leaflet-contextmenu")) {
console.log("🛑 Klick außerhalb des Kontextmenüs erkannt - Schließe Menü.");
//console.log("🛑 Klick außerhalb des Kontextmenüs erkannt - Schließe Menü.");
try {
store.dispatch(closePolylineContextMenu());

View File

@@ -83,7 +83,7 @@ export const setupPOIs = async (
`);
marker.on("mouseover", function () {
console.log("Device Name:", marker); // Debugging
//console.log("Device Name:", marker); // Debugging
handlePoiSelect(
{
id: location.idPoi,