cboettig commited on
Commit
1aade73
1 Parent(s): af47335
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -53,7 +53,8 @@ Pan and zoom to the desired location on the map. Then, use the map tools to draw
53
  built = "https://huggingface.co/datasets/boettiger-lab/yellowstone/resolve/main/diffs_cog.tif"
54
 
55
 
56
- m = leafmap.Map(center=[35, -100], zoom=3)
 
57
 
58
  ## Map controls sidebar
59
  with st.sidebar:
@@ -69,15 +70,7 @@ with st.sidebar:
69
  transparent_bg=True, opacity = 0.8,
70
  zoom_to_layer=False)
71
 
72
- "### python code for map layer:"
73
- "adjust options or add additional layers using leafmap"
74
- code = st.text_area(
75
- label = "code:",
76
- value = code_ex,
77
- height = 400)
78
 
79
- # run whatever python code is in the python box, just for fun
80
- eval(compile(code, "<string>", "exec"))
81
  st_data = m.to_streamlit(height=400, bidirectional=True)
82
 
83
  polygon = st_data["last_active_drawing"]
 
53
  built = "https://huggingface.co/datasets/boettiger-lab/yellowstone/resolve/main/diffs_cog.tif"
54
 
55
 
56
+ m = leafmap.Map(center=(-110.6, 45.45), zoom=10)
57
+ m.add_basemap("Esri.NatGeoWorldMap")
58
 
59
  ## Map controls sidebar
60
  with st.sidebar:
 
70
  transparent_bg=True, opacity = 0.8,
71
  zoom_to_layer=False)
72
 
 
 
 
 
 
 
73
 
 
 
74
  st_data = m.to_streamlit(height=400, bidirectional=True)
75
 
76
  polygon = st_data["last_active_drawing"]