Skip to content

TimeSliderChoropleth hides the attribution #1301

Closed

Description

@jjbenes

Problem description

See the last cell at https://nbviewer.jupyter.org/github/python-visualization/folium/blob/master/examples/TimeSliderChoropleth.ipynb. The attribution is supposed to be at the lower-right corner but it's hidden. (It is in HTML but the attribute layer doesn't show.)

Expected Output

Other plugins don't hide the attribution: https://nbviewer.jupyter.org/github/python-visualization/folium/blob/master/examples/Plugins.ipynb

Output of folium.__version__

0.10.1

Activity

  1. Conengmo commented on Apr 20, 2020

    @Conengmo
    Member

    I do see an attribution on that timeslider choropleth notebook, but only for Leaflet:

    image

    Do you see the same thing? Do you mean the issue is we're not seeing tilelayer attribution?

  2. jjbenes commented on Apr 20, 2020

    @jjbenes
    ContributorAuthor

    I don't see the attribution in the last cell here using a Chrome browser:
    Screen Shot 2020-04-20 at 12 48 50 AM
    As you can see, the lower-right corner is all dark.

    I was expecting to see an attribution like this:
    Screen Shot 2020-04-20 at 12 57 05 AM
    Not sure whether that's what you mean by a tile-layer attribution.

    Once I call up a time slider choropleth, I don't see this attribution anymore. It's in the HTML but not visible. I wonder whether the time slider pushes the whole tile down and the browser clips the bottom of the map, including the attribution.

  3. jjbenes commented on Apr 20, 2020

    @jjbenes
    ContributorAuthor

    I was able to replicate what you saw but I'm not sure how. For some reason, the time slider disappears on nbviewer and now I can see the attribution that you saw. Your screenshot shows only the attribution but did you also see the time slider on top? Here's a screenshot of what I saw. Seems that we can either see the attribution or the time slider but never both at the same time, consistent with the hypothesis that the time slider somehow pushes the attribution out of view.
    Screen Shot 2020-04-20 at 12 35 48 PM

  4. jjbenes commented on Apr 20, 2020

    @jjbenes
    ContributorAuthor

    Spoke too soon about not knowing how to replicate what you saw. Turns out searching for "attribute" in the console forces the attribute to show up at the bottom-right corner, which in turn pushes the time slider above out of view.

  5. Conengmo commented on Apr 21, 2020

    @Conengmo
    Member

    My best guess is that it's because we set the map to fill 100% of the height of it's parent div. Then we also add in the timeslider, causing the whole thing to stretch out further.

    On the example notebook I get a vertical scrollbar in the last output with the map. If I change the css on the map element (#map_dkjflsdk etc) from height: 100% to height: 80% the whole output does fit.

    To fix this, I think we should look into the extra title and slider we add in TimeSliderChoropleth, not how Map behaves, because changing Map is more risky.

    But maybe there's no way around that, and we have to change the way we set the height of Map to something like a flexbox approach.

    Alternatively, maybe the timeslider could be a Leaflet control on top of the map.

    Help is welcome with this!

  6. added
    bug
    help wanted
    on Apr 21, 2020
  7. markhudson42 commented on Aug 23, 2020

    @markhudson42
    Contributor

    Hi,

    Is this one fixed? Because I have just run the TimeSliderChropleth example notebook (after downloading it, running locally) using Chrome and the master branch of folium and I do see the full attribution at the bottom of the map, though it is the case that the slider control plus map takes up more space than is allocated to them, so you can't see the attribution unless you scroll down, but then you can't see the time slider.

    image

    Mark.

  8. mudassir733 commented on Jun 16, 2026

    @mudassir733

    Hi there! I'd love to work on this issue if it's available. Could you please assign it to me?

  9. hansthen commented on Jun 16, 2026

    @hansthen
    Collaborator

    @mudassir733 Feel free to work on it. We don't assign issues to people and I am pretty sure noone else is working on this.

  10. added 2 commits that reference this issue on Jul 4, 2026
    97c30b0
    7de77c1
  11. added a commit that references this issue on Jul 21, 2026
    28204e8
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

    bughelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions