Skip to content

Commit 0f17029

Browse files
committed
Add toll roads layer
1 parent 519bc29 commit 0f17029

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

leaflet/src/i18n/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
"hike-attribution": "© [Waymarked Trails](https://hiking.waymarkedtrails.org/) / [OSM Contributors](https://www.openstreetmap.org/copyright)",
2727
"bike-name": "Bicycle routes",
2828
"bike-attribution": "© [Waymarked Trails](https://cycling.waymarkedtrails.org/) / [OSM Contributors](https://www.openstreetmap.org/copyright)",
29+
"toll-name": "Toll roads",
30+
"toll-attribution": "[OSM Contributors](https://www.openstreetmap.org/copyright)",
2931
"rlie-name": "Relief",
3032
"grid-name": "Graticule",
3133
"frto-name": "Sea marks",

leaflet/src/layers.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,16 @@ export function createDefaultLayers(): Layers & { fallbackLayer: string | undefi
131131
noWrap: true
132132
})),
133133

134+
Toll: fixAttribution(tileLayer("https://tolls.facilmap.org/tile/{z}/{x}/{y}.png", {
135+
maxZoom: 20,
136+
...fmName(() => getI18n().t("layers.toll-name")),
137+
...attribution(() => getI18n().t("layers.toll-attribution")),
138+
zIndex: 300,
139+
noWrap: true,
140+
opacity: 0.7,
141+
className: "fm-toll-layer"
142+
})),
143+
134144
Rlie: tileLayer("https://tiles.wmflabs.org/hillshading/{z}/{x}/{y}.png", {
135145
maxZoom: 16,
136146
...fmName(() => getI18n().t("layers.rlie-name")),

0 commit comments

Comments
 (0)