Fix jwt-token

This commit is contained in:
2025-08-19 04:06:54 +02:00
parent 3c91415525
commit 0cb59f1b25
2 changed files with 6 additions and 7 deletions

View File

@@ -195,10 +195,9 @@ const MapView = () => {
[maxLat + latPadding, maxLon + lonPadding] // Northeast
];
setMapBounds(bounds);
// Only set center on initial load, not on periodic refreshes
// Only set bounds and center on initial load, not on periodic refreshes
if (isInitialLoad) {
setMapBounds(bounds);
const centerLat = (minLat + maxLat) / 2;
const centerLon = (minLon + maxLon) / 2;
setMapCenter([centerLat, centerLon]);