Add credit for POIs, link to configured instance
This commit is contained in:
parent
f06a081bdb
commit
8e328e9f0e
3 changed files with 11 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue