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

Fix issue with Folium v0.15.0 re. adding layers to map #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Conengmo
Copy link

@Conengmo Conengmo commented Jun 28, 2024

In Folium v0.15.0 we added a change in how layers are added to the map. This broke things here in this plugin. See python-visualization/folium#1690.

Fix it by not adding the layer to the map on initialization, but let the Layer class take care of that.

In addition, I opted to put the logic in a function so variable names like map and options don't interfere with other scopes.

@Conengmo
Copy link
Author

@danwild I wanted to bring this PR to your attention, if you have a moment it would be great if you could check it out. This plugin is currently broken with newer Folium versions and this should fix it. I understand if you're busy though :)

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

Successfully merging this pull request may close these issues.

1 participant