Skip to content

Layer manager

image image image

Control layer visibility and opacity with the Layer Manager

Uncomment the following line to install leafmap if needed.

1
# %pip install "leafmap[maplibre]"
1
import leafmap.maplibregl as leafmap
1
2
3
4
5
6
7
m = leafmap.Map(
    style="3d-terrain", projection="globe", height="700px", sidebar_visible=True
)
m.add_ee_layer(asset_id="ESA/WorldCover/v200", opacity=0.5)
m.add_legend(builtin_legend="ESA_WorldCover", title="ESA Landcover")
m.add_overture_3d_buildings()
m

image