Folium
In [1]:
Copied!
import geosdemo.foliumap as geosdemo
import geosdemo.foliumap as geosdemo
In [2]:
Copied!
m = geosdemo.Map(center=(40.7128, -74.0060), zoom=12)
m = geosdemo.Map(center=(40.7128, -74.0060), zoom=12)
In [3]:
Copied!
url = 'http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}'
url = 'http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}'
In [4]:
Copied!
m.add_tile_layer(url=url, name="Satellite", attribution="Google")
m.add_tile_layer(url=url, name="Satellite", attribution="Google")
In [5]:
Copied!
m
m
Out[5]:
Make this Notebook Trusted to load map: File -> Trust Notebook
In [6]:
Copied!
import folium
import folium
In [7]:
Copied!
m = folium.Map(location=[40, -100], zoom_start=4)
m
m = folium.Map(location=[40, -100], zoom_start=4)
m
Out[7]:
Make this Notebook Trusted to load map: File -> Trust Notebook
In [8]:
Copied!
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
m = folium.Map(location=[45.372, -121.6972], zoom_start=12, tiles="Stamen Terrain")
tooltip = "Click me!"
folium.Marker(
[45.3288, -121.6625], popup="Mt. Hood Meadows", tooltip=tooltip
).add_to(m)
folium.Marker(
[45.3311, -121.7113], popup="Timberline Lodge", tooltip=tooltip
).add_to(m)
m
Out[8]:
Make this Notebook Trusted to load map: File -> Trust Notebook
Last update:
2023-05-10