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 12, 2024
1 parent 176dea9 commit 0179401
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 @@ -302,7 +302,7 @@ const GeoSearch = (

const setMapView=(center, bounds)=>{
//map.fitBounds(bounds);
setTimeout(()=>map.setView(center, map.getZoom()>5?4), 200);
setTimeout(()=>map.setView(center, map.getZoom()>4?4:map.getZoom()), 200);
}

const handleSelect = (event: string) => {
Expand Down

0 comments on commit 0179401

Please sign in to comment.