Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session state key #169

Open
patrontheo opened this issue Jan 3, 2024 · 0 comments
Open

Session state key #169

patrontheo opened this issue Jan 3, 2024 · 0 comments
Labels
question Further information is requested

Comments

@patrontheo
Copy link
Contributor

Not really an issue but is there a reason why you use a hash to create the key of the map ?
The other widgets in streamlit just use the key provided as an argument.

It could be useful to get the returned objects before the call to st_folium(...). For this we need to know in advance what is the key of the widget.

A workaround I found is to look for a key that is 64 characters long in st.session_state..keys(), but it is not reliable and limited to one map being displayed.

An easy fix could be to return the key along with the other returned objects, and the user can save this key to a session state if he needs to use the returned objects before the call to st_folium.

@randyzwitch randyzwitch added the question Further information is requested label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants