Skip to content

Folium loads two versions of bootstrap #1908

Closed

Description

@bopjesvla

Describe the bug

Folium currently loads two versions of bootstrap:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"/>

To Reproduce

The first Folium iframe on https://python-visualization.github.io/folium/latest/getting_started.html contains the above snippet.

Activity

  1. Conengmo commented on Apr 3, 2024

    @Conengmo
    Member

    That's correct, we require Bootstrap 3 to show Glyphicons. See #1650.

    But I did just notice in https://stackoverflow.com/a/18225474/4082914 they also list a css just for Glyphicons. It seems to work as well. Not sure why we didn't include that in #1650. I'll open a PR.

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