Skip to content

Commit

Permalink
map: add OpenDataHub.com attribution to main layer
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Mar 7, 2024
1 parent 999097f commit fd91140
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/webapp/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ async function map_start_promise() {

for (let i = 0; i < mapTileURLs.length; i++) {
if (i == 0) {
sources[0] = new ol.source.OSM();
sources[0] = new ol.source.OSM({
attributions: [
'<a target="_blank" href="http://www.opendatahub.com">OpenDataHub.com</a> | © <a target="_blank" href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'
],
});
} else {
sources[sources.length] = new ol.source.OSM({
attributions: [
Expand Down

0 comments on commit fd91140

Please sign in to comment.