diff options
| author | 2026-01-08 20:51:47 +0700 | |
|---|---|---|
| committer | 2026-01-08 20:51:47 +0700 | |
| commit | a48036d496f0af90ff437c897b77418ca8453e9c (patch) | |
| tree | b9b0552b5ea16335828e345e3ffc472dc4b90c30 /views | |
| parent | e4f6790aab7f1b447892d0ed999dff8af45ac33e (diff) | |
| download | web-a48036d496f0af90ff437c897b77418ca8453e9c.tar.gz web-a48036d496f0af90ff437c897b77418ca8453e9c.zip | |
feat: switch standard OSM to CyclOSM for maps on site
feat: reduce border size for sidebar buttons from 0.3rem to 0.25rem
Diffstat (limited to 'views')
| -rw-r--r-- | views/pages/blog-page.html | 6 | ||||
| -rw-r--r-- | views/pages/global-map.html | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/views/pages/blog-page.html b/views/pages/blog-page.html index f488d64..c81406f 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://tile.openstreetmap.org/{z}/{x}/{y}.png', { - maxZoom: 18, - attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>' + L.tileLayer('https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.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' }).addTo(map); if (relativeErrorMeters != 0) { diff --git a/views/pages/global-map.html b/views/pages/global-map.html index 52ea841..7d788d6 100644 --- a/views/pages/global-map.html +++ b/views/pages/global-map.html @@ -230,9 +230,9 @@ function initLocationMap() { map = L.map('map-container').setView([{{ .MapLocationLat }}, {{ .MapLocationLong }}], 4); - L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { - maxZoom: 18, - attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>', + L.tileLayer('https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.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', zoomControl: false }).addTo(map); |