From 4112edde4ddcebfa66e43ccfbfbfb027f61255e0 Mon Sep 17 00:00:00 2001 From: danieldegroot2 <67521919+danieldegroot2@users.noreply.github.com> Date: Sun, 7 Jul 2024 21:27:14 +0200 Subject: [PATCH] Update OpenStreetMap provider in gdal2tiles.py I would like to suggest using the now preferred https://tile.openstreetmap.org URL instead of the current one (`{s}.`), see https://github.com/openstreetmap/operations/issues/737 Also, changes attribution URL to HTTPS link (use direct links). --- opendm/tiles/gdal2tiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendm/tiles/gdal2tiles.py b/opendm/tiles/gdal2tiles.py index 82e32604f..081c335a5 100644 --- a/opendm/tiles/gdal2tiles.py +++ b/opendm/tiles/gdal2tiles.py @@ -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: '© OpenStreetMap contributors'}); + var osm = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '© OpenStreetMap contributors'}); // .. CartoDB Positron var cartodb = L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', {attribution: '© OpenStreetMap contributors, © CartoDB'});