# !pip install leafmap
import leafmap.foliumap as leafmap
Create an interactive map.
m = leafmap.Map()
m.add_basemap("HYBRID")
m
Specify the output HTML file name to save the map as a web page.
m.to_html("mymap.html")
If the output HTML file name is not provided, the function will return a string containing contain the source code of the HTML file.
html = m.to_html()
# print(html)