diff --git a/components/mainComponent/MapComponent.js b/components/mainComponent/MapComponent.js index e8d2e20bb..b90e1a64d 100644 --- a/components/mainComponent/MapComponent.js +++ b/components/mainComponent/MapComponent.js @@ -362,40 +362,6 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => { } }, [poiTypStatus, dispatch]); - //-------------------------------------------- - useEffect(() => { - const fetchData = async () => { - try { - const response1 = await fetch(webserviceGisLinesStatusUrl); - const data1 = await response1.json(); - //console.log("data1.Statis", data1.Statis); - const reversedData = data1.Statis.reverse(); - setLineStatusData(reversedData); - - const response2 = await fetch("/api/talas_v5_DB/gisLines/readGisLines"); - const data2 = await response2.json(); - - const colorsByModule = {}; - reversedData.forEach((stat) => { - if (!Array.isArray(data2)) { - console.warn("WARNUNG: gis_lines ist kein Array, wird ignoriert."); - return; - } - const matchingLine = data2.find((item) => item.idLD === stat.IdLD && item.idModul === stat.Modul); - - if (matchingLine) { - colorsByModule[matchingLine.idModul] = stat.PrioColor; - //console.log("Übereinstimmung gefunden für: ", stat); - setLinesData(matchingLine); - } - }); - //setLineColors(colorsByModule); - } catch (error) { - console.error("Error fetching data:", error); - } - }; - fetchData(); - }, []); //----------------------------------------------------------------- //Tooltip an mouse position anzeigen für die Linien useEffect(() => { diff --git a/config/appVersion.js b/config/appVersion.js index 595614d35..ceaee5fdc 100644 --- a/config/appVersion.js +++ b/config/appVersion.js @@ -1,2 +1,2 @@ // /config/appVersion -export const APP_VERSION = "1.1.132"; +export const APP_VERSION = "1.1.133";