diff options
| author | 2026-05-04 02:40:45 +0700 | |
|---|---|---|
| committer | 2026-05-04 02:40:45 +0700 | |
| commit | 90463bdad7e1df4036c407c7055474adb1e70ba8 (patch) | |
| tree | 36ddbe74c45157439238d6295c599a1af493e562 | |
| parent | 696bbd751b172fa157b70699674c374a0ff54fc1 (diff) | |
| parent | 4bb41ea116703b7962197048f38e324d0a4ba6f2 (diff) | |
| download | web-0.15.2.tar.gz web-0.15.2.zip | |
v0.15.2 (#32)v0.15.2
- [feat: migrate from cyclosm to stadia maps outdoors (due to cyclosm
denial of
service)](https://github.com/SayaAndy/saya-today-web/commit/4bb41ea116703b7962197048f38e324d0a4ba6f2)
| -rw-r--r-- | views/pages/blog-page.html | 4 | ||||
| -rw-r--r-- | views/pages/global-map.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/views/pages/blog-page.html b/views/pages/blog-page.html index a5e80d8..0a20b29 100644 --- a/views/pages/blog-page.html +++ b/views/pages/blog-page.html @@ -21,9 +21,9 @@ function initLocationMap(id, x, y, relativeErrorMeters = 0) { map = L.map(id).setView([x, y], 8); - L.tileLayer('https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png', { + L.tileLayer('https://tiles.stadiamaps.com/tiles/outdoors/{z}/{x}/{y}{r}.png', { maxZoom: 20, - attribution: '<a href="https://github.com/cyclosm/cyclosm-cartocss-style/releases" title="CyclOSM - Open Bicycle render">CyclOSM</a> | Map data: © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' + attribution: '© <a href="https://stadiamaps.com/" target="_blank">Stadia Maps</a>, © <a href="https://openmaptiles.org/" target="_blank">OpenMapTiles</a> © <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a>', }).addTo(map); if (relativeErrorMeters != 0) { diff --git a/views/pages/global-map.html b/views/pages/global-map.html index 248d0b9..fe7d747 100644 --- a/views/pages/global-map.html +++ b/views/pages/global-map.html @@ -389,9 +389,9 @@ function initLocationMap() { map = L.map('map-container').setView([{{ .MapLocationLat }}, {{ .MapLocationLong }}], 4); - L.tileLayer('https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png', { + L.tileLayer('https://tiles.stadiamaps.com/tiles/outdoors/{z}/{x}/{y}{r}.png', { maxZoom: 20, - attribution: '<a href="https://github.com/cyclosm/cyclosm-cartocss-style/releases" title="CyclOSM - Open Bicycle render">CyclOSM</a> | Map data: © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', + attribution: '© <a href="https://stadiamaps.com/" target="_blank">Stadia Maps</a>, © <a href="https://openmaptiles.org/" target="_blank">OpenMapTiles</a> © <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a>', zoomControl: false }).addTo(map); |