randyzwitch / streamlit-folium

Streamlit Component for rendering Folium maps
https://folium.streamlit.app/
MIT License
468 stars 176 forks source link

Linting and geojson popup #131

Closed blackary closed 1 year ago

blackary commented 1 year ago

Added a couple of new features:

  1. Return the value of the clicked object's popup, if any exists
  2. Add the ability to pass return_on_hover, which treats hover events as click events

Also updated linting to use ruff, add a new test of the popup functionality, and upgraded to newer streamlit features in demo app.

UPDATE: Separated out the non-linting changes into https://github.com/randyzwitch/streamlit-folium/pull/134

randyzwitch commented 1 year ago

Not a huge stickler on these sorts of things, but if it's not too hard, breaking the linting off the other changes would make it easier to review