From 2dbcad55fd82e599031280eab6c6e56b24d9d785 Mon Sep 17 00:00:00 2001 From: Adam Fontenot Date: Mon, 16 Oct 2023 11:08:10 -0400 Subject: [PATCH] Update leaflet.fullscreen to 3.0.0 Fixes #1687. Note: the CDN was changed from cdnjs to jsdelivr because an issue with the former means that the fullscreen icon is broken for all versions >= 2.2.0 and <= 3.0.0. --- folium/plugins/fullscreen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folium/plugins/fullscreen.py b/folium/plugins/fullscreen.py index 37ecda78c..84ab7e730 100644 --- a/folium/plugins/fullscreen.py +++ b/folium/plugins/fullscreen.py @@ -40,13 +40,13 @@ class Fullscreen(JSCSSMixin, MacroElement): default_js = [ ( "Control.Fullscreen.js", - "https://cdnjs.cloudflare.com/ajax/libs/leaflet.fullscreen/1.4.2/Control.FullScreen.min.js", + "https://cdn.jsdelivr.net/npm/leaflet.fullscreen@3.0.0/Control.FullScreen.min.js", ) ] default_css = [ ( "Control.FullScreen.css", - "https://cdnjs.cloudflare.com/ajax/libs/leaflet.fullscreen/1.4.2/Control.FullScreen.min.css", + "https://cdn.jsdelivr.net/npm/leaflet.fullscreen@3.0.0/Control.FullScreen.css", ) ]