Folium intro
In [1]:
import folium
In [2]:
m = folium.Map(location=[45.5236, -122.6750])
m
Out[2]:
Make this Notebook Trusted to load map: File -> Trust Notebook
In [3]:
m = folium.Map(location=[45.372, -121.6972], zoom_start=12, tiles="Stamen Terrain")
tooltip = "Click me!"
folium.Marker(
[45.3288, -121.6625], popup="<i>Mt. Hood Meadows</i>", tooltip=tooltip
).add_to(m)
folium.Marker(
[45.3311, -121.7113], popup="<b>Timberline Lodge</b>", tooltip=tooltip
).add_to(m)
m
Out[3]:
Make this Notebook Trusted to load map: File -> Trust Notebook
Last update: 2021-05-07