Skip to content

Commit

Permalink
Add layer definition for Thunderforest's Transport Dark layer
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Dec 18, 2024
1 parent 8fd130e commit ebfaf22
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions leaflet-osm.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ L.OSM.TransportMap = L.OSM.TileLayer.extend({
}
});

L.OSM.TransportDarkMap = L.OSM.TileLayer.extend({
options: {
url: 'https://{s}.tile.thunderforest.com/transport-dark/{z}/{x}/{y}{r}.png?apikey={apikey}',
maxZoom: 21,
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>'
}
});

L.OSM.OPNVKarte = L.OSM.TileLayer.extend({
options: {
url: 'https://tileserver.memomaps.de/tilegen/{z}/{x}/{y}.png',
Expand Down

0 comments on commit ebfaf22

Please sign in to comment.