Merge branch 'v0.6-fixes'

This commit is contained in:
Norbert Renner 2017-03-15 09:36:40 +01:00
commit 0eba7f40be
4 changed files with 12 additions and 4 deletions

View file

@ -1,6 +1,10 @@
BRouter-Web Changelog
=====================
## 0.6.2 (2017-03-14)
* Fix "API Key Required" in OpenCycleMap & Outdoors by registering for Thunderforest "Hobby Project" plan
## 0.6.1 (2016-12-12)
* Add Esri World Imagery layer (DigitalGlobe is now also blocked because monthly usage limit is exceeded)

View file

@ -12,7 +12,7 @@
<body class="flexcolumn">
<nav class="navbar navbar-full navbar-dark bg-inverse">
<div class="navbar-header">
<a class="navbar-brand" href="#" data-toggle="modal" data-target="#about">BRouter-Web <sup class="version">0.6.1</sup></a>
<a class="navbar-brand" href="#" data-toggle="modal" data-target="#about">BRouter-Web <sup class="version">0.6.2</sup></a>
<button class="navbar-toggler hidden-md-up" type="button" data-toggle="collapse" data-target="#collapsingNavbar" aria-controls="collapsingNavbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="fa fa-bars"></span>
</button>

View file

@ -24,11 +24,12 @@ BR.Map = {
var thunderforestAttribution = 'tiles &copy; <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
});
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
});

View file

@ -7,7 +7,10 @@
bing: '',
// DigitalGlobe, https://developer.digitalglobe.com/maps-api/#plans
digitalGlobe: ''
digitalGlobe: '',
// Thunderforest, http://thunderforest.com/pricing/
thunderforest: ''
};
})();