MSU576 commited on
Commit
977ea82
·
verified ·
1 Parent(s): 62808a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -12
app.py CHANGED
@@ -1481,18 +1481,11 @@ def locator_page():
1481
  except Exception:
1482
  pass
1483
 
1484
- # Enable drawing
1485
- #from geemap import Draw
1486
- # Add draw control (rectangle + polygon only)
1487
- #draw_control = Draw(export=False,draw_polygon=True,draw_rectangle=True,
1488
- #draw_circle=False,
1489
- # draw_polyline=False,
1490
- # draw_marker=False
1491
- #)
1492
- #m.add_control(draw_control)
1493
- #m.to_streamlit(height=700, responsive=True)
1494
- # st.markdown("👉 Draw a polygon/rectangle on the map (draw tool). After drawing click **Compute Summaries**.")
1495
-
1496
  # Button to compute summaries (we'll fetch ROI from map object)
1497
  if "compute_button" not in st.session_state:
1498
  st.session_state["compute_button"] = False
 
1481
  except Exception:
1482
  pass
1483
 
1484
+ # ----------------------------
1485
+ # Show map with drawing tools
1486
+ # ----------------------------
1487
+ st.markdown("👉 Draw a polygon/rectangle on the map (use draw tool). After drawing, click **Compute Summaries**.")
1488
+ m.to_streamlit(height=700, responsive=True)
 
 
 
 
 
 
 
1489
  # Button to compute summaries (we'll fetch ROI from map object)
1490
  if "compute_button" not in st.session_state:
1491
  st.session_state["compute_button"] = False