diff --git a/src/components/search/geosearch.tsx b/src/components/search/geosearch.tsx index 2dd82ba..f65ccd5 100644 --- a/src/components/search/geosearch.tsx +++ b/src/components/search/geosearch.tsx @@ -307,7 +307,7 @@ const GeoSearch = ( map.fitBounds(bounds); } else { // Set a minimum zoom level of 4 - setTimeout(() => map.setView(center, Math.max(4, map.getZoom())), 200); + setTimeout(() => map.setView(center, Math.min(4, map.getZoom())), 200); } };