add openrailwaymap overlay, closes #298

This commit is contained in:
vcoppe
2026-01-11 20:18:00 +01:00
parent f24956c58d
commit 59f31caf26
2 changed files with 24 additions and 0 deletions

View File

@@ -368,6 +368,26 @@ export const overlays: { [key: string]: string | StyleSpecification } = {
], ],
}, },
bikerouterGravel: bikerouterGravel as StyleSpecification, bikerouterGravel: bikerouterGravel as StyleSpecification,
openRailwayMap: {
version: 8,
sources: {
openRailwayMap: {
type: 'raster',
tiles: ['https://tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png'],
tileSize: 256,
maxzoom: 19,
attribution:
'Data <a href="https://www.openstreetmap.org/copyright">&copy; OpenStreetMap contributors</a>, Style: <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA 2.0</a> <a href="http://www.openrailwaymap.org/">OpenRailwayMap</a>',
},
},
layers: [
{
id: 'openRailwayMap',
type: 'raster',
source: 'openRailwayMap',
},
],
},
swisstopoSlope: { swisstopoSlope: {
version: 8, version: 8,
sources: { sources: {
@@ -801,6 +821,7 @@ export const overlayTree: LayerTreeType = {
}, },
cyclOSMlite: true, cyclOSMlite: true,
bikerouterGravel: true, bikerouterGravel: true,
openRailwayMap: true,
}, },
countries: { countries: {
france: { france: {
@@ -885,6 +906,7 @@ export const defaultOverlays: LayerTreeType = {
}, },
cyclOSMlite: false, cyclOSMlite: false,
bikerouterGravel: false, bikerouterGravel: false,
openRailwayMap: false,
}, },
countries: { countries: {
france: { france: {
@@ -1020,6 +1042,7 @@ export const defaultOverlayTree: LayerTreeType = {
}, },
cyclOSMlite: false, cyclOSMlite: false,
bikerouterGravel: false, bikerouterGravel: false,
openRailwayMap: false,
}, },
countries: { countries: {
france: { france: {

View File

@@ -324,6 +324,7 @@
"bgMountains": "BGMountains", "bgMountains": "BGMountains",
"usgs": "USGS", "usgs": "USGS",
"bikerouterGravel": "bikerouter.de Gravel", "bikerouterGravel": "bikerouter.de Gravel",
"openRailwayMap": "OpenRailwayMap",
"cyclOSMlite": "CyclOSM Lite", "cyclOSMlite": "CyclOSM Lite",
"swisstopoSlope": "swisstopo Slope", "swisstopoSlope": "swisstopo Slope",
"swisstopoHiking": "swisstopo Hiking", "swisstopoHiking": "swisstopo Hiking",