Test auf dem Laptop (local) und API von 13

This commit is contained in:
ISA
2024-06-03 07:58:00 +02:00
parent b2f8698126
commit 11a5fe0393
2 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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: {