giswqs commited on
Commit
c123458
·
1 Parent(s): 016e699

Add stac app

Browse files
Files changed (2) hide show
  1. pages/08_stac.py +23 -0
  2. requirements.txt +1 -1
pages/08_stac.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import solara
2
+ import leafmap.maplibregl as leafmap
3
+
4
+
5
+ def create_map():
6
+
7
+ m = leafmap.Map(
8
+ style="liberty",
9
+ projection="globe",
10
+ height="750px",
11
+ zoom=2.5,
12
+ sidebar_visible=True,
13
+ )
14
+ m.add_basemap("Satellite", visible=False)
15
+ m.add_stac_gui()
16
+ m.add_draw_control()
17
+ return m
18
+
19
+
20
+ @solara.component
21
+ def Page():
22
+ m = create_map()
23
+ return m.to_solara()
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  geopandas
2
- leafmap>=0.46.7
3
  mapclassify
4
  maplibre
5
  solara
 
1
  geopandas
2
+ leafmap>=0.46.8
3
  mapclassify
4
  maplibre
5
  solara