Add credit for POIs, link to configured instance

This commit is contained in:
Norbert Renner 2021-03-24 11:02:21 +01:00
parent f06a081bdb
commit 8e328e9f0e
3 changed files with 11 additions and 2 deletions

View file

@ -56,6 +56,10 @@ BR.Map = {
$('#credits').on('show.bs.modal', function (event) {
BR.Map._renderLayerCredits(layersControl._layers);
const overpassUrl = new URL(BR.conf.overpassBaseUrl || 'https://overpass-api.de').origin;
for (const link of document.getElementsByClassName('overpass-url')) {
link.href = overpassUrl;
}
});
new L.Control.PermalinkAttribution().addTo(map);