Skip to content

Refactoring proposal for streamlit-folium: feedback requested #269

@hansthen

Description

@hansthen

@randyzwitch @blackary

Some time ago javascript event handlers were added as first level objects to the Folium library. These have the potential to make the internal structure of streamlit-folium simpler.

At present streamlit-folium is somewhat binary. It supports a number of plugins (like draw and side-by-side), but that support is also activated when we do not use these plugins. This can cause some problems. There was a minor conflict between the extensions for the Draw plugin when I added the Geoman plugin to Folium.

If we use the Folium event handlers we can make modularize this. Modularization will make the internal structure of the streamlit component more comprehensible. (I also think it will no longer be necessary to use regex expressions to make the naming conventions uniform.)

I have a few ideas to implement this which I would like to discuss with you. But the main and first question would be: are you open for this? It would be a major refactoring. If so, do you have secondary requirements like backwards compatibility?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions