-
Hi @giswqs, I would like to access the geometries updated when drawing on the map, if I'm not mistaken they are updated with the attribute I would like for example to insert them in a code window that would be updated at each change with streamlit such as:
Thank you very much |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Unfortunately, |
Beta Was this translation helpful? Give feedback.
-
@giswqs Any updates after two years? It would be useful to pass user_rois bounds to search data vis pystac. |
Beta Was this translation helpful? Give feedback.
Unfortunately,
m.user_rois
won't work with streamlit. It is a one-way street. Once the the map is converted to html (m_to_streamlit()
) and displayed in streamlit, all the bi-directional communication is gone. Whatever you do with the map in streamlit can't communicate back to python. The only workaround is to use the foliumdraw_export
plugin to manually export the drawn geometries as a geojson and import it back to the app, just like what is implemented in https://github.com/giswqs/streamlit-geospatial.