testing updates

This commit is contained in:
Aaron Po
2026-08-27 03:40:08 -04:00
parent d7e1a79fb2
commit 9f39a305d5
11 changed files with 647 additions and 6 deletions

View File

@@ -72,9 +72,9 @@ const RecenterMap = ({
useEffect(() => {
if (currentLocation) {
map.setView(currentLocation, CURRENT_LOCATION_ZOOM);
map.setView(currentLocation, CURRENT_LOCATION_ZOOM, { animate: false });
} else if (bounds.length > 0) {
map.fitBounds(bounds, { padding: [32, 32], maxZoom: 6 });
map.fitBounds(bounds, { padding: [32, 32], maxZoom: 6, animate: false });
}
}, [map, bounds, currentLocation]);