File size: 370 Bytes
60752af
3a5f998
 
 
 
 
c217774
6f8ce19
374af18
3a5f998
 
 
0b5ad97
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import leafmap.maplibregl as leafmap
import streamlit as st
import numpy as np

st.set_page_config(layout="wide")
st.title("Leafmap MapLibre Demo")

m = leafmap.Map()
m.add_basemap("Satellite")
m.add_ee_layer(asset_id="ESA/WorldCover/v200", opacity=1)
m.add_legend(builtin_legend="ESA_WorldCover", title="ESA Landcover")
m.add_layer_control()
m.to_streamlit(height=750)