mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 10:04:44 +00:00
testing updates
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user