Skip to content

Commit 41f8261

Browse files
authored
Change url of leaflet.timedimension.control.min.css to https CDN (#1256)
1 parent 4a7532d commit 41f8261

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

folium/plugins/heat_map_withtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def render(self, **kwargs):
179179
name='leaflet-heatmap.js')
180180

181181
figure.header.add_child(
182-
CssLink('http://apps.socib.es/Leaflet.TimeDimension/dist/leaflet.timedimension.control.min.css'), # noqa
182+
CssLink('https://rawcdn.githack.com/socib/Leaflet.TimeDimension/master/dist/leaflet.timedimension.control.min.css'), # noqa
183183
name='leaflet.timedimension.control.min.css')
184184

185185
figure.header.add_child(

folium/plugins/timestamped_wmstilelayer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,5 @@ def render(self, **kwargs):
150150
name='highlight.js_css')
151151

152152
figure.header.add_child(
153-
CssLink('http://apps.socib.es/Leaflet.TimeDimension/dist/leaflet.timedimension.control.min.css'), # noqa
153+
CssLink('https://rawcdn.githack.com/socib/Leaflet.TimeDimension/master/dist/leaflet.timedimension.control.min.css'), # noqa
154154
name='leaflet.timedimension_css')

tests/plugins/test_heat_map_withtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_heat_map_with_time():
3232
assert script in out
3333
script = '<script src="https://rawcdn.githack.com/python-visualization/folium/master/folium/templates/pa7_leaflet_hm.min.js"></script>' # noqa
3434
assert script in out
35-
script = '<link rel="stylesheet" href="http://apps.socib.es/Leaflet.TimeDimension/dist/leaflet.timedimension.control.min.css"/>' # noqa
35+
script = '<link rel="stylesheet" href="https://rawcdn.githack.com/socib/Leaflet.TimeDimension/master/dist/leaflet.timedimension.control.min.css"/>' # noqa
3636
assert script in out
3737

3838
# We verify that the script part is correct.

0 commit comments

Comments
 (0)