Skip to content

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

Closed

Description

@prashanthgpkr

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?

Activity

  1. Conengmo commented on May 23, 2020

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

  2. pstatonwx commented on May 23, 2022

    @pstatonwx

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions