saadfrh commited on
Commit
50ce670
·
verified ·
1 Parent(s): ac7a0d8

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import leafmap.maplibregl as leafmap
2
+ import streamlit as st
3
+ import numpy as np
4
+
5
+ st.set_page_config(layout="wide")
6
+ st.title("ESA LandCover Leafmap MapLibre By Saad Frh")
7
+
8
+ m = leafmap.Map()
9
+ m.add_basemap("Satellite")
10
+ m.add_ee_layer(asset_id="ESA/WorldCover/v200", opacity=1)
11
+ m.add_legend(builtin_legend="ESA_WorldCover", title="ESA Landcover")
12
+ m.add_layer_control()
13
+ m.to_streamlit(height=750)