Add Thunderforest API key ("Hobby Project" plan), fixes #70
This commit is contained in:
parent
1e26cb1027
commit
98acb27f5f
2 changed files with 7 additions and 3 deletions
|
|
@ -31,12 +31,13 @@ BR.Map = {
|
|||
|
||||
var thunderforestAttribution = 'tiles © <a target="_blank" href="http://www.thunderforest.com">Thunderforest</a> '
|
||||
+ '(<a target="_blank" href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA 2.0</a>)';
|
||||
var cycle = L.tileLayer('http://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png', {
|
||||
var thunderforestAuth = BR.keys.thunderforest ? '?apikey=' + BR.keys.thunderforest : '';
|
||||
var cycle = L.tileLayer('http://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png' + thunderforestAuth, {
|
||||
maxNativeZoom: 18,
|
||||
maxZoom: maxZoom,
|
||||
attribution: thunderforestAttribution
|
||||
});
|
||||
var outdoors = L.tileLayer('http://{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png', {
|
||||
var outdoors = L.tileLayer('http://{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png' + thunderforestAuth, {
|
||||
maxNativeZoom: 18,
|
||||
maxZoom: maxZoom,
|
||||
attribution: thunderforestAttribution
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@
|
|||
bing: '',
|
||||
|
||||
// DigitalGlobe, https://developer.digitalglobe.com/maps-api/#plans
|
||||
digitalGlobe: ''
|
||||
digitalGlobe: '',
|
||||
|
||||
// Thunderforest, http://thunderforest.com/pricing/
|
||||
thunderforest: ''
|
||||
};
|
||||
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue