Add license references
This commit is contained in:
parent
753de596c6
commit
468b20ecc2
3 changed files with 30 additions and 1 deletions
|
|
@ -298,7 +298,10 @@ gulp.task('layers', ['layers_config'], function () {
|
|||
// Workaround to get file extension removed from the dictionary key
|
||||
.pipe(rename({ extname: ".json" }))
|
||||
.pipe(jsonConcat(paths.layersDestName, function(data){
|
||||
return Buffer.from('BR.layerIndex = ' + JSON.stringify(data, null, 2) + ';');
|
||||
var header = '// Licensed under the MIT License (https://github.com/nrenner/brouter-web#license + Credits and Licenses),\n'
|
||||
+ '// except JOSM imagery database (dataSource=JOSM) is licensed under Creative Commons (CC-BY-SA),\n'
|
||||
+ '// see https://josm.openstreetmap.de/wiki/Maps#Otherimportantinformation\n';
|
||||
return Buffer.from(header + 'BR.layerIndex = ' + JSON.stringify(data, null, 2) + ';');
|
||||
}))
|
||||
.pipe(gulp.dest(paths.dest));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue