How to Pull Data from a Map on Streamlit Using st_last_draw, st.draw_features, etc. #1292
-
I'm attempting to use the .st_last_draw, and st.draw_features through a geemap.folium map in streamlit to pull boundary polygon information from features that I have drawn on the map in streamlit, but I can't seem to get the function to work correctly. Do you have a tutorial on how to use these functions? I've also tried to use Map.draw_features, or Map.draw_count, but the streamlit app never recognizes that I've made a change to the map and therefore won't record the drawn features. If I try to wrap these functions in a button, the action of using the button resets the entire app and wipes any features Ive drawn on the map. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Those functions are just placeholders. I have not implemented them yet. I would encourage you to try out streamlit-folium. I plan to develop a streamlit-leaflet package that provides bi-directional functionality, but I don't have time to do it yet. |
Beta Was this translation helpful? Give feedback.
-
Hey giswqs, please can you let me know if you have any update on this? |
Beta Was this translation helpful? Give feedback.
Those functions are just placeholders. I have not implemented them yet. I would encourage you to try out streamlit-folium. I plan to develop a streamlit-leaflet package that provides bi-directional functionality, but I don't have time to do it yet.