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"
MapTiler provides a variety of basemaps and styles that can be used to create 3D maps. You can use any styles from the MapTiler basemap gallery and prefix the style name with 3d-
. For example, 3d-hybrid
, 3d-satellite
, or 3d-topo
. To use the hillshade only, you can use the 3d-hillshade
style.
In [4]:
Copied!
m = leafmap.Map(style="3d-hybrid")
m.add_layer_control(bg_layers=True)
m
m = leafmap.Map(style="3d-hybrid")
m.add_layer_control(bg_layers=True)
m
An API key is required to use the 3D terrain feature.
In [5]:
Copied!
m = leafmap.Map(style="3d-satellite")
m.add_layer_control(bg_layers=True)
m
m = leafmap.Map(style="3d-satellite")
m.add_layer_control(bg_layers=True)
m
An API key is required to use the 3D terrain feature.
In [6]:
Copied!
m = leafmap.Map(style="3d-topo", exaggeration=1.5, hillshade=False)
m.add_layer_control(bg_layers=True)
m
m = leafmap.Map(style="3d-topo", exaggeration=1.5, hillshade=False)
m.add_layer_control(bg_layers=True)
m
An API key is required to use the 3D terrain feature.