#!/usr/bin/env python # coding: utf-8 # In[1]: import folium lon = -(41 + 20 / 60.0 + 17 / 60 / 60.0) lat = -(20 + 59 / 60.0 + 35 / 60 / 60.0) min_lon, max_lon = -45, -35 min_lat, max_lat = -25, -15 m = folium.Map( max_bounds=True, location=[lat, lon], zoom_start=6, min_lat=min_lat, max_lat=max_lat, min_lon=min_lon, max_lon=max_lon, ) kw = { "radius": 10, "color": "black", "fill": True, "weight": 1, "fill_color": "green", "fill_opacity": 1, } c0 = folium.CircleMarker(location=[max_lat, min_lon], tooltip="Upper Left Corner", **kw) c1 = folium.CircleMarker(location=[min_lat, min_lon], tooltip="Lower Left Corner", **kw) c2 = folium.CircleMarker( location=[min_lat, max_lon], tooltip="Lower Right Corner", **kw ) c3 = folium.CircleMarker( location=[max_lat, max_lon], tooltip="Upper Right Corner", **kw ) for c in [c0, c1, c2, c3]: m.add_child(c) m