Skip to content

Update documentation using on_each_feature for GeoJson #2141

Closed

Description

@hansthen

We changed the implementation of this, but it could really use some better documentation and possibly an example.

Activity

  1. added
    documentation
    on May 17, 2025
  2. saheelsapovadia commented on Sep 9, 2025

    @saheelsapovadia
    Contributor

    @hansthen , i can help here. can you assign this to me?

  3. hansthen commented on Sep 9, 2025

    @hansthen
    CollaboratorAuthor

    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.

  4. saheelsapovadia commented on Sep 9, 2025

    @saheelsapovadia
    Contributor

    @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..

  5. hansthen commented on Sep 9, 2025

    @hansthen
    CollaboratorAuthor

    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.

  6. hansthen commented on Sep 9, 2025

    @hansthen
    CollaboratorAuthor

    Nice work on the documentation! Do you also want to tackle some coding tasks?

  7. saheelsapovadia commented on Sep 10, 2025

    @saheelsapovadia
    Contributor

    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.

    okay, have added it.

  8. saheelsapovadia commented on Sep 10, 2025

    @saheelsapovadia
    Contributor

    Nice work on the documentation! Do you also want to tackle some coding tasks?

    Sure, that would be amazing.

  9. saheelsapovadia commented on Sep 10, 2025

    @saheelsapovadia
    Contributor

    @hansthen do you have anything in mind?

  10. hansthen commented on Sep 10, 2025

    @hansthen
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions