mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-01-15 14:18:41 +00:00
add openrailwaymap overlay, closes #298
This commit is contained in:
@@ -368,6 +368,26 @@ export const overlays: { [key: string]: string | 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">© 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: {
|
||||
version: 8,
|
||||
sources: {
|
||||
@@ -801,6 +821,7 @@ export const overlayTree: LayerTreeType = {
|
||||
},
|
||||
cyclOSMlite: true,
|
||||
bikerouterGravel: true,
|
||||
openRailwayMap: true,
|
||||
},
|
||||
countries: {
|
||||
france: {
|
||||
@@ -885,6 +906,7 @@ export const defaultOverlays: LayerTreeType = {
|
||||
},
|
||||
cyclOSMlite: false,
|
||||
bikerouterGravel: false,
|
||||
openRailwayMap: false,
|
||||
},
|
||||
countries: {
|
||||
france: {
|
||||
@@ -1020,6 +1042,7 @@ export const defaultOverlayTree: LayerTreeType = {
|
||||
},
|
||||
cyclOSMlite: false,
|
||||
bikerouterGravel: false,
|
||||
openRailwayMap: false,
|
||||
},
|
||||
countries: {
|
||||
france: {
|
||||
|
||||
@@ -324,6 +324,7 @@
|
||||
"bgMountains": "BGMountains",
|
||||
"usgs": "USGS",
|
||||
"bikerouterGravel": "bikerouter.de Gravel",
|
||||
"openRailwayMap": "OpenRailwayMap",
|
||||
"cyclOSMlite": "CyclOSM Lite",
|
||||
"swisstopoSlope": "swisstopo Slope",
|
||||
"swisstopoHiking": "swisstopo Hiking",
|
||||
|
||||
Reference in New Issue
Block a user