Skip to content

Commit

Permalink
Update OpenStreetMap provider in gdal2tiles.py
Browse files Browse the repository at this point in the history
I would like to suggest using the now preferred https://tile.openstreetmap.org URL instead of the current one (`{s}.`), see

openstreetmap/operations#737

Also, changes attribution URL to HTTPS link (use direct links).
  • Loading branch information
danieldegroot2 authored Jul 7, 2024
1 parent 5c30ea1 commit 4112edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendm/tiles/gdal2tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -2381,7 +2381,7 @@ def generate_leaflet(self):
// Base layers
// .. OpenStreetMap
var osm = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'});
var osm = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'});
// .. CartoDB Positron
var cartodb = L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', {attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="http://cartodb.com/attributions">CartoDB</a>'});
Expand Down

0 comments on commit 4112edd

Please sign in to comment.