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 876eb3b commit b756766
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/search/geosearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,9 @@ const GeoSearch = (

}else{
// GEO.ca record
map.setView(center, map.getZoom());
//map.setView(center, map.getZoom());
//setMapView(center, bounds);
map.fitBounds(L.geoJSON(data).getBounds();, { padding: [50, 50] });
new L.geoJSON(data).addTo(map);
}
} else{
Expand Down

0 comments on commit b756766

Please sign in to comment.