diff --git a/hooks/layers/useGmaMarkersLayer.js b/hooks/layers/useGmaMarkersLayer.js index 8b5a99e04..409b2eddf 100644 --- a/hooks/layers/useGmaMarkersLayer.js +++ b/hooks/layers/useGmaMarkersLayer.js @@ -28,7 +28,7 @@ const useMarkersLayer = (map, markers, GisStationsMeasurements, GMA, oms, isVisi const gt = measurements["GT"] || "---"; const rlf = measurements["RLF"] || "---"; - console.log(`Station oder Bereich ${area_name} - LT: ${lt}, FBT: ${fbt}, GT: ${gt}, RLF: ${rlf}`); + //console.log(`Station oder Bereich ${area_name} - LT: ${lt}, FBT: ${fbt}, GT: ${gt}, RLF: ${rlf}`); // Tooltip für den Marker binden marker.bindTooltip( diff --git a/hooks/layers/useSmsfunkmodemMarkersLayer.js b/hooks/layers/useSmsfunkmodemMarkersLayer.js index 3dcb27493..b4539855b 100644 --- a/hooks/layers/useSmsfunkmodemMarkersLayer.js +++ b/hooks/layers/useSmsfunkmodemMarkersLayer.js @@ -11,7 +11,7 @@ const useSmsfunkmodemMarkersLayer = (map, oms, GisSystemStatic, priorityConfig, if (!map || !GisSystemStatic) return; // Debugging: Logge die Sichtbarkeit und die übergebenen Daten - console.log("isVisible für SMS Modem:", isVisible); + //console.log("isVisible für SMS Modem:", isVisible); console.log("Alle Stationen in GisSystemStatic:", GisSystemStatic); // Hilfsfunktion: Normalisiert Strings diff --git a/utils/createAndSetDevices.js b/utils/createAndSetDevices.js index 6674f3310..7014c7dd8 100644 --- a/utils/createAndSetDevices.js +++ b/utils/createAndSetDevices.js @@ -36,8 +36,10 @@ export const createAndSetDevices = async (systemId, setMarkersFunction, GisSyste const getIdSystemAndAllowValueMap = new Map(GisSystemStatic.map((system) => [system.IdSystem, system.Allow])); if (jsonResponse.Points && statusResponse.Statis) { - console.log("jsonResponse.Points: ", jsonResponse.Points); - console.log("statusResponse.Statis: ", statusResponse.Statis); + //console.log("jsonResponse.Points: ", jsonResponse.Points); + //console.log("statusResponse.Statis: ", statusResponse.Statis); + localStorage.setItem("jsonResponse.Points", JSON.stringify(jsonResponse.Points)); + localStorage.setItem("statusResponse.Statis", JSON.stringify(statusResponse.Statis)); const statisMap = new Map(statusResponse.Statis.map((s) => [s.IdLD, s])); let markersData = jsonResponse.Points.filter((station) => station.System === systemId && getIdSystemAndAllowValueMap.get(station.System) === 1).map((station) => { const statis = statisMap.get(station.IdLD); @@ -111,7 +113,6 @@ export const createAndSetDevices = async (systemId, setMarkersFunction, GisSyste `); - return marker; }); diff --git a/utils/mapUtils.js b/utils/mapUtils.js index 56e344cdf..3c3938b59 100644 --- a/utils/mapUtils.js +++ b/utils/mapUtils.js @@ -103,9 +103,12 @@ export const checkOverlappingMarkers = (map, markers, plusIcon) => { const latLng = L.latLng(coords.match(/[-.\d]+/g).map(Number)); const plusMarker = L.marker(latLng, { icon: plusIcon }); plusMarker.addTo(map); - - console.log("Adding plus icon marker at", latLng); + //localStorage benutzen statt console.log + //console.log("Adding plus icon marker at", latLng); + localStorage.setItem("Adding plus icon marker at", plusMarker); } } - console.log("overlappingGroups", overlappingGroups); + //localStorage benutzen statt console.log + //console.log("overlappingGroups", overlappingGroups); + localStorage.setItem("overlappingGroups", overlappingGroups); }; diff --git a/utils/setupPOIs.js b/utils/setupPOIs.js index 7abc7c945..7aa30d322 100644 --- a/utils/setupPOIs.js +++ b/utils/setupPOIs.js @@ -83,7 +83,9 @@ export const setupPOIs = async ( `); marker.on("mouseover", function () { - console.log("Device Name:", marker); // Debugging + //loaclStorage benutzen statt console.log + //console.log("Device Name:", marker); // Debugging + localStorage.setItem("deviceName", marker.options.name); handlePoiSelect( { id: location.idPoi,