Spaces:
Sleeping
Sleeping
onfarmview
commited on
Commit
·
48784bd
1
Parent(s):
ad60f71
first time
Browse files
app.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
import leafmap.foliumap as leafmap
|
|
|
|
|
|
|
| 3 |
from streamlit.components.v1 import html
|
| 4 |
import ee
|
| 5 |
import folium
|
|
@@ -71,18 +73,14 @@ st.markdown(histats_code, unsafe_allow_html=True)
|
|
| 71 |
|
| 72 |
map_center=(-43.525650, 172.639847)
|
| 73 |
|
| 74 |
-
m =
|
| 75 |
basemap="Esri",
|
| 76 |
plugin_Draw=True,
|
| 77 |
Draw_export=True,
|
| 78 |
locate_control=True,
|
| 79 |
-
plugin_LatLngPopup=False, center=map_center, zoom=
|
| 80 |
)
|
| 81 |
-
|
| 82 |
-
# m = leafmap.Map(center=[-40.9006, 174.8860], zoom=7)
|
| 83 |
-
# m.add_basemap("Esri")
|
| 84 |
-
# m.add_basemap("Stamen.Terrain")
|
| 85 |
-
# m.add_basemap("CartoDB.Positron")
|
| 86 |
|
| 87 |
m.to_streamlit(height=700)
|
| 88 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
# import leafmap.foliumap as leafmap
|
| 3 |
+
import geemap.foliumap as geemap
|
| 4 |
+
|
| 5 |
from streamlit.components.v1 import html
|
| 6 |
import ee
|
| 7 |
import folium
|
|
|
|
| 73 |
|
| 74 |
map_center=(-43.525650, 172.639847)
|
| 75 |
|
| 76 |
+
m = geemap.Map(
|
| 77 |
basemap="Esri",
|
| 78 |
plugin_Draw=True,
|
| 79 |
Draw_export=True,
|
| 80 |
locate_control=True,
|
| 81 |
+
plugin_LatLngPopup=False, center=map_center, zoom=12,
|
| 82 |
)
|
| 83 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
m.to_streamlit(height=700)
|
| 86 |
|