From 11a5fe039351429390cd3d0e2e789667fab5b09a Mon Sep 17 00:00:00 2001 From: ISA Date: Mon, 3 Jun 2024 07:58:00 +0200 Subject: [PATCH] Test auf dem Laptop (local) und API von 13 --- components/MapComponent.js | 8 ++++---- pages/api/[...path].js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/MapComponent.js b/components/MapComponent.js index 363648c7e..238967b93 100644 --- a/components/MapComponent.js +++ b/components/MapComponent.js @@ -139,8 +139,8 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => { const zoomTrigger = useRecoilValue(zoomTriggerState); const offlineTileLayer = "/mapTiles/{z}/{x}/{y}.png"; //const onlineTileLayer = "/mapTiles/{z}/{x}/{y}.png"; - //const onlineTileLayer = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"; - const onlineTileLayer = "http://localhost:3000/mapTiles/{z}/{x}/{y}.png"; //Talas_v5 Server + const onlineTileLayer = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"; + //const onlineTileLayer = "http://localhost:3000/mapTiles/{z}/{x}/{y}.png"; //Talas_v5 Server // Create map layers const TALAS = new L.layerGroup(); const ECI = new L.layerGroup(); @@ -1695,7 +1695,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => { // Funktion zum Ein- und Ausblenden der TALAS-Marker basierend auf dem Zustand von mapLayersVisibility.TALAS - useEffect(() => { + /* useEffect(() => { if (!map || !talasMarkers) return; const toggleLayer = (isVisible) => { @@ -1711,7 +1711,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => { // Apply visibility state to the TALAS layer toggleLayer(mapLayersVisibility.TALAS); - }, [map, talasMarkers, mapLayersVisibility.TALAS]); + }, [map, talasMarkers, mapLayersVisibility.TALAS]); */ //------------------------------------------ */ // Funktion zum Ein- und Ausblenden der ECI-Marker basierend auf dem Zustand von mapLayersVisibility.ECI diff --git a/pages/api/[...path].js b/pages/api/[...path].js index 4f934b0bb..0ca8e9516 100644 --- a/pages/api/[...path].js +++ b/pages/api/[...path].js @@ -3,8 +3,8 @@ import { createProxyMiddleware } from "http-proxy-middleware"; export default createProxyMiddleware({ //target: "http://192.168.10.58:3001", - //target: "http://10.10.0.13", // Ziel-URL des Proxys - target: "http://localhost", // Ziel-URL des Proxys + target: "http://10.10.0.13", // Ziel-URL des Proxys, GET //talas5/ClientData/WebserviceMap.asmx/GisStationsStatusDistrict?idMap=10&idUser=484 504 in 20ms + //target: "http://localhost", // Ziel-URL des Proxys //target: "http://192.168.10.187:3000", // Ziel-URL des Proxys changeOrigin: true, pathRewrite: {