nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit cbdc528d5e94d3059a83a62061a709961409da18
parent 856cc3d1a9add23ce010ba35786efbb23aee2f5d
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Tue, 25 Apr 2023 21:27:27 +0200

Add layer CyclOSM

Diffstat:
Msrc/layers.js | 22+++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/src/layers.js b/src/layers.js @@ -39,6 +39,24 @@ class LayerGroupWithOptions extends L.LayerGroup { ) }, { + title: 'CyclOSM', + isDefault: true, + layer: L.tileLayer('https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png', + { + code: 'Co', + isOverlay: false, + scaleDependent: true, + print: true, + jnx: true, + shortName: 'cyclosm', + attribution: + '<a href="https://www.openstreetmap.org/copyright">' + + '&copy; OpenStreetMap contributors</a>. ' + + 'Tiles style by <a href="https://www.cyclosm.org/">CyclOSM</a>', + } + ) + }, + { title: 'ESRI Satellite', isDefault: true, layer: L.tileLayer( @@ -1083,6 +1101,7 @@ class LayerGroupWithOptions extends L.LayerGroup { title: 'Default layers', layers: [ 'OpenStreetMap', + 'CyclOSM', 'ESRI Satellite', 'Yandex map', 'Yandex Satellite', @@ -1114,7 +1133,7 @@ class LayerGroupWithOptions extends L.LayerGroup { layers: [ 'OpenTopoMap', 'OpenCycleMap', - 'OSM Outdoors' + 'OSM Outdoors', ], }, { @@ -1170,6 +1189,7 @@ class LayerGroupWithOptions extends L.LayerGroup { // common base layers // OSM 'OpenStreetMap', + 'CyclOSM', 'OpenTopoMap', 'OpenCycleMap', 'OSM Outdoors',