diff --git a/src/components/search/geosearch.tsx b/src/components/search/geosearch.tsx index e725449..9b39df3 100644 --- a/src/components/search/geosearch.tsx +++ b/src/components/search/geosearch.tsx @@ -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(() => {