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,
|
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: {
|
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: {
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user