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

Selection events for maps #8653

Open
2 tasks done
jrieke opened this issue May 13, 2024 · 2 comments
Open
2 tasks done

Selection events for maps #8653

jrieke opened this issue May 13, 2024 · 2 comments
Labels

Comments

@jrieke
Copy link
Collaborator

jrieke commented May 13, 2024

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

We will soon add selections to charts (st.plotly_chart and st.altair_chart) and dataframes (st.dataframe). We should also enable selection and/or click events on maps (st.pydeck_chart and st.map).

Why

Let us know in the comments if you have specific use cases in mind!

How

We'll probably reuse the on_select parameter in a similar way to charts and dataframes. We need to have a look at if and how PyDeck supports selection events. For inspiration, we should also look at the bidirectional Folium custom component.

Additional context

Related issues:

@jrieke jrieke added the type:enhancement Requests for feature enhancements or new features label May 13, 2024
Copy link

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Visits

@jrieke jrieke changed the title Selection events for maps (st.pydeck_chart and st.map) Selection events for maps May 14, 2024
@mkubi84
Copy link

mkubi84 commented May 26, 2024

I would love this feature! I use the Arclayer and Iconlayer from PyDeck to visualize locations and deliveries. If I could click on these, details about deliveries (quantity, cost, etc.) could be displayed as metrics using the Fragment function. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants