Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
4k views

How to call fitBounds and getBounds in react-leaflet?

I cannot figure out how to call fitBounds() on the Leaflet map. Basically, I am trying to display multiple markers on the map and have the view adjust accordingly (zoom in, zoom out, fly to, etc.). i ...
Piotr's user avatar
  • 145