python-visualization / folium

Python Data. Leaflet.js Maps.

Home Page:https://python-visualization.github.io/folium/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Folium loads two versions of bootstrap

bopjesvla opened this issue · comments

commented

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.

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.