I am plotting some maps using folium. Works pretty smoothly. However, I could not figure out how to pre-calculate the right level of zoom
I can set it automatically
import folium
m = folium.Map([point_of_interest.iloc[0].Lat, point_of_interest.iloc[0].Long])
but in my use case I would need to pre-calculate zoom_start
such that:
- all couples
(Lat,Long)
from mypandas
dataframe ofpoint_of_interest
are within the map - the zoom level is the mnimum possilbe