Skip to content

Commit

Permalink
Testing stadia map
Browse files Browse the repository at this point in the history
  • Loading branch information
kauevestena authored Oct 31, 2023
1 parent 8f18c04 commit d374c37
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions generation_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='&copy; <a href="https://www.stadiamaps.com/" target="_blank">Stadia Maps</a> &copy; <a href="https://www.stamen.com/" target="_blank">Stamen Design</a> &copy; <a href="https://openmaptiles.org/" target="_blank">OpenMapTiles</a> &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
opacity=0.4,min_zoom=2,max_zoom=10).add_to(m)

# CSV Columns are:
# city_name,center_long,center_lat,url
Expand Down Expand Up @@ -66,4 +69,4 @@
# modifying the HTML:

for insertion_point in insertions_dict:
replace_at_html('index.html',insertion_point,insertions_dict[insertion_point])
replace_at_html('index.html',insertion_point,insertions_dict[insertion_point])

0 comments on commit d374c37

Please sign in to comment.