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
|
|
@ -171,7 +171,11 @@
|
|||
<dd data-i18n="[html]credits.boundaries">
|
||||
Administrative Boundaries:
|
||||
<a href="https://osm-boundaries.com" target="_blank">OSM-Boundaries</a>,
|
||||
<a href="https://overpass-api.de/" target="_blank">Overpass API</a>
|
||||
<a href="https://overpass-api.de/" class="overpass-url" target="_blank">Overpass API</a>
|
||||
</dd>
|
||||
<dd data-i18n="[html]credits.pois">
|
||||
Locations (POIs):
|
||||
<a href="https://overpass-api.de/" class="overpass-url" target="_blank">Overpass API</a>
|
||||
</dd>
|
||||
<dt data-i18n="credits.elevation-data">Elevation data</dt>
|
||||
<dd>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
"tooltip": "Show more information about BRouter-Web"
|
||||
},
|
||||
"credits": {
|
||||
"boundaries": "Administrative Boundaries: <a href=\"https://osm-boundaries.com\" target=\"_blank\">OSM-Boundaries</a>, <a href=\"https://overpass-api.de/\" target=\"_blank\">Overpass API</a>",
|
||||
"boundaries": "Administrative Boundaries: <a href=\"https://osm-boundaries.com\" target=\"_blank\">OSM-Boundaries</a>, <a href=\"https://overpass-api.de/\" class=\"overpass-url\" target=\"_blank\">Overpass API</a>",
|
||||
"brouter": "BRouter",
|
||||
"brouter-license": "<a target=\"_blank\" href=\"https://brouter.de/brouter\">BRouter</a> © Arndt Brenschede",
|
||||
"elevation-data": "Elevation data",
|
||||
|
|
@ -25,6 +25,7 @@
|
|||
"map-tiles": "Map tiles",
|
||||
"nominatim": "Search by <a href=\"https://wiki.openstreetmap.org/wiki/Nominatim\" target=\"_blank\" data-i18n=\"credits.nominatim\">Nominatim</a>",
|
||||
"openstreetmap": "© <a target=\"_blank\" href=\"https://www.openstreetmap.org/copyright\" >OpenStreetMap contributors</a> under <a target=\"_blank\" href=\"https://opendatacommons.org/licenses/odbl/\" >ODbL</a>",
|
||||
"pois": "Locations (POIs): <a href=\"https://overpass-api.de/\" class=\"overpass-url\" target=\"_blank\">Overpass API</a>",
|
||||
"title": "Credits"
|
||||
},
|
||||
"export": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue