From d374c3779b2da646a22aa62aaff95b9aff44ee03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kau=C3=AA=20de=20Moraes=20Vestena?= Date: Tue, 31 Oct 2023 15:52:41 +0100 Subject: [PATCH] Testing stadia map --- generation_script.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/generation_script.py b/generation_script.py index 2d68429..050d6a6 100644 --- a/generation_script.py +++ b/generation_script.py @@ -19,8 +19,11 @@ ) -folium.TileLayer(tiles='Stamen Toner',opacity=0.4,min_zoom=2,max_zoom=10).add_to(m) +#folium.TileLayer(tiles='Stamen Toner',opacity=0.4,min_zoom=2,max_zoom=10).add_to(m) +folium.TileLayer(tiles='https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}{r}.{ext}', + attr='© Stadia Maps © Stamen Design © OpenMapTiles © OpenStreetMap contributors', + opacity=0.4,min_zoom=2,max_zoom=10).add_to(m) # CSV Columns are: # city_name,center_long,center_lat,url @@ -66,4 +69,4 @@ # modifying the HTML: for insertion_point in insertions_dict: - replace_at_html('index.html',insertion_point,insertions_dict[insertion_point]) \ No newline at end of file + replace_at_html('index.html',insertion_point,insertions_dict[insertion_point])