Skip to content

Commit

Permalink
Enable retina tiles for Thunderforest layers
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Aug 29, 2017
1 parent c754569 commit 3384575
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vendor/assets/leaflet/leaflet.osm.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ L.OSM.Mapnik = L.OSM.TileLayer.extend({
L.OSM.CycleMap = L.OSM.TileLayer.extend({
options: {
url: document.location.protocol === 'https:' ?
'https://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey={apikey}' :
'http://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey={apikey}',
'https://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}{r}.png?apikey={apikey}' :
'http://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}{r}.png?apikey={apikey}',
attribution: '© <a href="http://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.TransportMap = L.OSM.TileLayer.extend({
options: {
url: document.location.protocol === 'https:' ?
'https://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png?apikey={apikey}' :
'http://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png?apikey={apikey}',
'https://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}{r}.png?apikey={apikey}' :
'http://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}{r}.png?apikey={apikey}',
attribution: '© <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors. Tiles courtesy of <a href="http://www.thunderforest.com/" target="_blank">Andy Allan</a>'
}
});
Expand Down

0 comments on commit 3384575

Please sign in to comment.