From c71761768eeb82cfa380c9780f615d3526b62a63 Mon Sep 17 00:00:00 2001 From: ISA Date: Mon, 8 Jul 2024 13:41:49 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20St=C3=BCtzpunkte=20hinzuf=C3=BCgen=20un?= =?UTF-8?q?d=20Browser=20aktualisieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/MapComponent.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/MapComponent.js b/components/MapComponent.js index 6e78094e7..f29e4a5cd 100644 --- a/components/MapComponent.js +++ b/components/MapComponent.js @@ -2431,6 +2431,10 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => { ); insertNewMarker(closestPoints, newPoint, lineData, map); redrawPolyline(lineData); + //Browser aktualisieren + localStorage.setItem("mapZoom", currentZoom); + localStorage.setItem("mapCenter", JSON.stringify(currentCenter)); + window.location.reload(); }, }, ],