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

@@ -871,14 +871,14 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
updateAllMarkers(); updateAllMarkers();
if (map) { if (map) {
console.log("🔥 Automatischer Klick-Event ausgelöst, um Spiderfy zu aktualisieren."); // console.log("🔥 Automatischer Klick-Event ausgelöst, um Spiderfy zu aktualisieren.");
map.fire("click"); map.fire("click");
} }
if (isPolylineContextMenuOpen) { if (isPolylineContextMenuOpen) {
dispatch(closePolylineContextMenu()); // Schließe das Kontextmenü, bevor das nächste Update passiert dispatch(closePolylineContextMenu()); // Schließe das Kontextmenü, bevor das nächste Update passiert
} }
if (map) { if (map) {
console.log("🔥 nochmal klick."); // console.log("🔥 nochmal klick.");
map.fire("click"); map.fire("click");
} }
}, 20000); }, 20000);

View File

@@ -1,2 +1,2 @@
// /config/appVersion // /config/appVersion
export const APP_VERSION = "1.1.47"; export const APP_VERSION = "1.1.48";

View File

@@ -1,7 +1,7 @@
// /utils/polylines/eventHandlers.js // /utils/polylines/eventHandlers.js
export function enablePolylineEvents(polylines, lineColors) { export function enablePolylineEvents(polylines, lineColors) {
if (!polylines || polylines.length === 0) { if (!polylines || polylines.length === 0) {
console.warn("Keine Polylinien vorhanden oder polylines ist undefined."); //console.warn("Keine Polylinien vorhanden oder polylines ist undefined.");
return; 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) => { export const setupPolylines = (map, linePositions, lineColors, tooltipContents, setNewCoords, tempMarker, currentZoom, currentCenter, polylineVisible) => {
if (!polylineVisible) { if (!polylineVisible) {
console.warn("Polylines deaktiviert - keine Zeichnung"); //console.warn("Polylines deaktiviert - keine Zeichnung");
return { markers: [], polylines: [] }; return { markers: [], polylines: [] };
} }
@@ -312,7 +312,7 @@ export const setupPolylines = (map, linePositions, lineColors, tooltipContents,
document.addEventListener("click", function handleOutsideClick(event) { document.addEventListener("click", function handleOutsideClick(event) {
if (!event.target.closest(".leaflet-contextmenu")) { 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 { try {
store.dispatch(closePolylineContextMenu()); store.dispatch(closePolylineContextMenu());

View File

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