Merge pull request #163 from bagage/show-strava-error

Show strava error + update translations
This commit is contained in:
Norbert Renner 2019-03-16 10:33:39 +01:00 committed by GitHub
commit 68823fefb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 184 additions and 9 deletions

View file

@ -253,6 +253,9 @@
})
.addTo(map);
layersControl.addOverlay(stravaControl.stravaLayer, i18next.t('map.layer.strava-segments'));
stravaControl.onError = function(err) {
BR.message.showError(i18next.t('warning.strava-error', {error: err && err.message ? err.message : err}));
}
}
map.addControl(new BR.OpacitySlider({