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 8, 2024
1 parent 2976df0 commit 62c035a
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 @@ -251,7 +251,7 @@ const GeoSearch = (
// GEO.ca record
//map.setView(center, map.getZoom());
//setMapView(center, bounds);
const padding = window.innerWidth < 768 ? [20, 20] : [50, -150];
const padding = window.innerWidth < 768 ? [20, 20] : [50, 150];
map.fitBounds(L.geoJSON(data).getBounds(), { paddingTopLeft: [padding[0], padding[1]], paddingBottomRight: [50, 50] });
map.panBy([-150, 0]);
setTimeout(() => {
Expand Down

0 comments on commit 62c035a

Please sign in to comment.