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(); }, }, ],