diff --git a/.env.local b/.env.local index ee43d9cb9..f808f5136 100644 --- a/.env.local +++ b/.env.local @@ -1,17 +1,17 @@ #.env.local #je nach dem Mysql Server, ob localhost freigegeben ist oder die IP Adresse des Servers, manchmal die beide und manchmal nur eine -#DB_HOST=10.10.0.13 +#DB_HOST=10.10.0.30 #DB_USER=root #DB_PASSWORD="root#$" #DB_NAME=talas_v5 #DB_PORT=3306 ######################### -#NEXT_PUBLIC_BASE_URL="http://10.10.0.13/talas5/devices/" -#NEXT_PUBLIC_SERVER_URL="http://10.10.0.13" -#NEXT_PUBLIC_PROXY_TARGET="http://10.10.0.13" -#NEXT_PUBLIC_ONLINE_TILE_LAYER="http://10.10.0.13:3000/mapTiles/{z}/{x}/{y}.png" +#NEXT_PUBLIC_BASE_URL="http://10.10.0.30/talas5/devices/" +#NEXT_PUBLIC_SERVER_URL="http://10.10.0.30" +#NEXT_PUBLIC_PROXY_TARGET="http://10.10.0.30" +#NEXT_PUBLIC_ONLINE_TILE_LAYER="http://10.10.0.30:3000/mapTiles/{z}/{x}/{y}.png" ######################### diff --git a/NodeMap.pdf b/NodeMap.pdf new file mode 100644 index 000000000..423f61acf Binary files /dev/null and b/NodeMap.pdf differ diff --git a/hooks/useLineData.js b/hooks/useLineData.js index 2f1bdc172..d1934e36e 100644 --- a/hooks/useLineData.js +++ b/hooks/useLineData.js @@ -103,7 +103,15 @@ const useLineData = (webserviceGisLinesStatusUrl, setLineStatusData) => { } }; + const scheduleNextFetch = () => { + if (!isCancelled) { + fetchData(); + setTimeout(scheduleNextFetch, 30000); + } + }; + fetchData(); + scheduleNextFetch(); return () => { isCancelled = true; diff --git a/utils/setupPolylines.js b/utils/setupPolylines.js index 75fcae30c..3b666e340 100644 --- a/utils/setupPolylines.js +++ b/utils/setupPolylines.js @@ -323,8 +323,8 @@ export const setupPolylines = (map, linePositions, lineColors, tooltipContents, const contextMenu = this._map.contextmenu; // Zugriff auf das Kontextmenü const closeMenu = () => contextMenu.hide(); // Funktion zum Schließen des Menüs - const countdown = parseInt(localStorage.getItem("contextMenuCountdown"), 10); - if (countdown >= 17) { + const countdown = parseInt(localStorage.getItem("contextMenuCountdown"), 30); + if (countdown >= 28) { closeMenu(); } });