Skip to content

Commit ebfaf22

Browse files
committed
Add layer definition for Thunderforest's Transport Dark layer
1 parent 8fd130e commit ebfaf22

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

leaflet-osm.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ L.OSM.TransportMap = L.OSM.TileLayer.extend({
4444
}
4545
});
4646

47+
L.OSM.TransportDarkMap = L.OSM.TileLayer.extend({
48+
options: {
49+
url: 'https://{s}.tile.thunderforest.com/transport-dark/{z}/{x}/{y}{r}.png?apikey={apikey}',
50+
maxZoom: 21,
51+
attribution: '© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors. Tiles courtesy of <a href="http://www.thunderforest.com/" target="_blank">Andy Allan</a>'
52+
}
53+
});
54+
4755
L.OSM.OPNVKarte = L.OSM.TileLayer.extend({
4856
options: {
4957
url: 'https://tileserver.memomaps.de/tilegen/{z}/{x}/{y}.png',

0 commit comments

Comments
 (0)