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

Unable to remove markers or polylines added to the Map #1233

Closed
prashanthgpkr opened this issue Nov 25, 2019 · 2 comments
Closed

Unable to remove markers or polylines added to the Map #1233

prashanthgpkr opened this issue Nov 25, 2019 · 2 comments

Comments

@prashanthgpkr
Copy link

prashanthgpkr commented Nov 25, 2019

I am currently using Folium (0.10.0) to create a Map for a given data. In my specific use case, I would like to add markers and then delete the specific markers as the data gets updated. This also should work with respective polylines that are plotted between these markers.

I have been looking for the appropriate way to do this, but not able to find any solution so far. Could any one please let me know, if there is any way to solve this issue?

@Conengmo
Copy link
Member

I'm afraid folium is not really suitable for this. It's a one way street from Python to Javascript. Dynamically updating your map when your data in Python changes is not possible, other than rerendering the entire map.

You could check it this other library called ipyleaflet, it focuses more on interactivity in Jupyter notebooks: https://github.com/jupyter-widgets/ipyleaflet

@pstatonwx
Copy link

@Conengmo Just curious if any progress has been made on this since posting - hoping it's possible now :)

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

No branches or pull requests

3 participants