Display a satellite map
This source code of this example is adapted from the MapLibre GL JS example - Display a satellite map.
Uncomment the following line to install leafmap if needed.
In [1]:
Copied!
# %pip install "leafmap[maplibre]"
# %pip install "leafmap[maplibre]"
In [2]:
Copied!
import leafmap.maplibregl as leafmap
import leafmap.maplibregl as leafmap
In [3]:
Copied!
# import os
# os.environ["MAPTILER_KEY"] = "YOUR_API_KEY"
# import os
# os.environ["MAPTILER_KEY"] = "YOUR_API_KEY"
In [4]:
Copied!
m = leafmap.Map(center=[137.9150899566626, 36.25956997955441], zoom=9, style="hybrid")
m
m = leafmap.Map(center=[137.9150899566626, 36.25956997955441], zoom=9, style="hybrid")
m
Failed to retrieve the MapTiler style. Defaulting to OpenFreeMap 'liberty' style.
In [5]:
Copied!
m = leafmap.Map(center=[137.9150899566626, 36.25956997955441], zoom=9)
m.add_basemap("Esri.WorldImagery")
m
m = leafmap.Map(center=[137.9150899566626, 36.25956997955441], zoom=9)
m.add_basemap("Esri.WorldImagery")
m
In [6]:
Copied!
m.add_basemap()
m.add_basemap()
In [ ]:
Copied!