Skip to content

Time slider disappears after click +- button to zoom on the map  #841

@chen7572

Description

@chen7572

Please add a code sample or a nbviewer link, copy-pastable if possible

from folium.plugins import TimeSliderChoropleth

m = folium.Map(location=[40.45, -80], zoom_start=11)

g = TimeSliderChoropleth(
    tracts.to_json(),
    styledict=review_dict,

).add_to(m)

m

Problem description

I was able to use TimeSliderChoropleth plugin to make an interactive map to show changes over time, but as soon as I use the +- sign on the map to zoom in and out on the map, the slider disappears and I cannot get it back! Had similar issue when testing the example case given on Github. Any advice on how to work around this? Thank you very much!

Expected Output

Output of folium.__version__

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue describing unexpected or malicious behaviourjupyterThis issue/PR has to do about Jupyter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions