saadfrh's picture
Update app.py
08a5a2b verified
raw
history blame contribute delete
483 Bytes
import leafmap.maplibregl as leafmap
import streamlit as st
import numpy as np
st.set_page_config(layout="wide")
st.title("3D ESA LandCover MapLibre By Saad Frh")
m = leafmap.Map(center=[-7.942445468869124, 32.228985468754104], zoom=5, pitch=60, bearing=30, style="3d-terrain")
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)