You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update documentation using on_each_feature for GeoJson #2141
I have assigned you. However, you do not need to be assigned for this, to pick it up. Just a PR is fine. We rarely have conflicts.
There is an underlying bug that this new feature helps solve. #1520. A possible example should reflect how it can solve this issue. If you need any guidance just ping me.
It is okay to add a new file like this. However, it can be useful to add a note to the existing documentation (in the link you provided) that the popup and tooltip do not work in case of multigeometries and point to the advanced guide.
It is okay to add a new file like this. However, it can be useful to add a note to the existing documentation (in the link you provided) that the popup and tooltip do not work in case of multigeometries and point to the advanced guide.
I am not sure how experienced you are. Currently there are several ways to implement tooltips and popups for GeoJson. One way is to use the Geojson Tooltip and Popup class. The other is to use the on_each_feature. It would be nice if we could unify both. However, it is a bit of a tricky one. If you try this, don't be discouraged if it feels hard.
Activity
saheelsapovadia commentedon Sep 9, 2025
@hansthen , i can help here. can you assign this to me?
hansthen commentedon Sep 9, 2025
I have assigned you. However, you do not need to be assigned for this, to pick it up. Just a PR is fine. We rarely have conflicts.
There is an underlying bug that this new feature helps solve. #1520. A possible example should reflect how it can solve this issue. If you need any guidance just ping me.
saheelsapovadia commentedon Sep 9, 2025
@hansthen , i have figured out the example code. should i append it in this md - https://github.com/python-visualization/folium/blob/main/docs/user_guide/geojson/geojson_popup_and_tooltip.md ?
or create a new md file..
hansthen commentedon Sep 9, 2025
It is okay to add a new file like this. However, it can be useful to add a note to the existing documentation (in the link you provided) that the popup and tooltip do not work in case of multigeometries and point to the advanced guide.
hansthen commentedon Sep 9, 2025
Nice work on the documentation! Do you also want to tackle some coding tasks?
saheelsapovadia commentedon Sep 10, 2025
okay, have added it.
saheelsapovadia commentedon Sep 10, 2025
Sure, that would be amazing.
saheelsapovadia commentedon Sep 10, 2025
@hansthen do you have anything in mind?
hansthen commentedon Sep 10, 2025
I am not sure how experienced you are. Currently there are several ways to implement tooltips and popups for GeoJson. One way is to use the Geojson Tooltip and Popup class. The other is to use the
on_each_feature. It would be nice if we could unify both. However, it is a bit of a tricky one. If you try this, don't be discouraged if it feels hard.