Skip to content

multiple TimeSliderChoropleth fails #1744

Closed
@Sponka

Description

@Sponka

Describe the bug

I was trying to visualise multiple time series in one map using TimeSliderChoropleth. I tried multiple variations of the code you can see on the screenshot, but every time it returned a map with blue patches. I would like to ask if there is any solution to this issue.

Screenshot from 2023-04-03 18-30-39

To Reproduce

wales = folium.Map([52.395180, -3.511841],zoom_start=7.5)
ts1 = TimeSliderChoropleth(area_sites,name = 'A', styledict=sd_p,
                     overlay=True, show=False)
ts2 = TimeSliderChoropleth(area_sites,name = 'B', styledict=sd_m,control=True,
                     overlay=True, show=False)
ts1.add_to(wales)
ts2.add_to(wales)

folium.LayerControl().add_to(wales)
wales#.save("testmap.html")

Expected behavior
Would it be possible to add multiple TimeSliderChoropleth?

Environment (please complete the following information):

  • Browser Chrome
  • Jupyter Notebook
  • Python version sys.version_info(major=3, minor=10, micro=4, releaselevel='final', serial=0)
  • folium version 0.14.0
  • branca version 0.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature request or idea about how to make folium betterpluginThis issue/PR is about an existing or new pluginwork in progressWork is in progress on a PR, check the PR to see its status

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions