Skip to content

Commit

Permalink
Update geosearch.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
bo-lu committed Nov 14, 2024
1 parent 2f17bb3 commit 45d8b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/search/geosearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

Expand Down

0 comments on commit 45d8b9b

Please sign in to comment.