Fix jwt-token
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user