giswqs's picture
Add basemap
374af18 verified
raw
history blame contribute delete
No virus
370 Bytes
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)