import requests
m = folium.Map(location=[-59.1759, -11.6016], tiles="cartodbpositron", zoom_start=2)
topo = requests.get(
"https://raw.githubusercontent.com/python-visualization/folium-example-data/main/antarctic_ice_shelf_topo.json"
).json()
folium.TopoJson(
data=topo,
object_path="objects.antarctic_ice_shelf",
name="default_smoothing",
smooth_factor=1,
style_function=lambda x: {"color": "#004c00", "opacity": "0.7"},
).add_to(m)
folium.TopoJson(
data=topo,
object_path="objects.antarctic_ice_shelf",
name="heavier smoothing",
smooth_factor=10,
style_function=lambda x: {"color": "#1d3060", "opacity": "0.7"},
).add_to(m)
folium.LayerControl().add_to(m)
m