In [1]:
import os
import folium

print(folium.__version__)


0.3.0.dev

In [2]:
lon = -(41 + 20/60. + 17/60/60.)
lat = -(20 + 59/60. + 35/60/60.)

min_lon, max_lon = -45, -35
min_lat, max_lat = -25, -15

m = folium.Map(
    location=[lat, lon],
    zoom_start=6,
    min_lat=min_lat,
    max_lat=max_lat,
    min_lon=min_lon,
    max_lon=max_lon
)


kw = dict(radius=10, fill_color='green', fill_opacity=1)

c0 = folium.CircleMarker(location=[max_lat, min_lon], popup='Upper Left Corner', **kw)
c1 = folium.CircleMarker(location=[min_lat, min_lon], popup='Lower Left Corner', **kw)
c2 = folium.CircleMarker(location=[min_lat, max_lon], popup='Lower Right Corner', **kw)
c3 = folium.CircleMarker(location=[max_lat, max_lon], popup='Upper Right Corner', **kw)

for c in [c0, c1, c2, c3]:
    m.add_child(c)

m.save(os.path.join('results', 'MinMaxLimits.html'))

m


Out[2]: