From 468b20ecc27ae93f851dae4ee37d1d5ecdcb105d Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Tue, 30 Apr 2019 20:42:17 +0200 Subject: [PATCH] Add license references --- README.md | 19 +++++++++++++++++++ gulpfile.js | 5 ++++- layers/josm/LICENSE | 7 +++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 layers/josm/LICENSE diff --git a/README.md b/README.md index a5f0ca5..cfee912 100644 --- a/README.md +++ b/README.md @@ -156,3 +156,22 @@ Ilya Zverev; [Do What The F*ck You Want To Public License](https://github.com/Ma Copyright (c) 2018 Gautier Pelloux-Prayer; [MIT License](https://gitlab.com/bagage/leaflet.stravasegments/blob/master/LICENSE) * [polyline](https://github.com/mapbox/polyline) Copyright (c), Development Seed; [BSD 3-Clause License](https://github.com/mapbox/polyline/blob/master/LICENSE) +* [leaflet-fullHash](https://github.com/KoGor/leaflet-fullHash) +Copyright (c) 2014 KoGor; [MIT License](https://github.com/KoGor/leaflet-fullHash/blob/master/LICENSE) +* [Turf.js](https://github.com/Turfjs/turf) +Copyright (c) 2019 Morgan Herlocker; [MIT License](https://github.com/Turfjs/turf/blob/master/LICENSE) +* [i18next](https://github.com/i18next/i18next), [i18next-browser-languageDetector](https://github.com/i18next/i18next-browser-languageDetector), [i18next-xhr-backend](https://github.com/i18next/i18next-xhr-backend), [jquery-i18next](https://github.com/i18next/jquery-i18next/blob/master/LICENSE) +Copyright (c) 2017 i18next; [MIT License](https://github.com/i18next/i18next/blob/master/LICENSE) +* [Leaflet TriangleMarker](https://github.com/themeler/leaflet-triangle-marker) +Copyright (c) 2018 Przemysław Melnarowicz; [MIT License](https://github.com/themeler/leaflet-triangle-marker/blob/master/LICENSE) +* [jsTree ](https://github.com/vakata/jstree) +Copyright (c) 2014 Ivan Bozhanov; [MIT License](https://github.com/vakata/jstree/blob/master/LICENSE-MIT) +* [Leaflet.snogylop](https://github.com/ebrelsford/leaflet.snogylop) +Copyright (c) 2014 Eric Brelsford; [MIT License](https://github.com/ebrelsford/Leaflet.snogylop/blob/master/LICENSE) +* [JOSM maps](https://josm.openstreetmap.de/wiki/Maps) +imagery database is licensed under [CC-BY-SA](https://creativecommons.org/licenses/by-sa/3.0/) +* [LayersCollection](https://github.com/Edward17/LayersCollection/tree/gh-pages) +Copyright (c) 2016 Eduard <edward17>; [MIT License](https://github.com/Edward17/LayersCollection/blob/gh-pages/LICENSE.md) +* [Leaflet-providers](https://github.com/leaflet-extras/leaflet-providers) +Copyright (c) 2013 Leaflet Providers contributors All rights reserved.; [2-clause BSD License](https://github.com/leaflet-extras/leaflet-providers/blob/master/license.md) + diff --git a/gulpfile.js b/gulpfile.js index 03c45ad..2666dee 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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)); }); diff --git a/layers/josm/LICENSE b/layers/josm/LICENSE new file mode 100644 index 0000000..223e392 --- /dev/null +++ b/layers/josm/LICENSE @@ -0,0 +1,7 @@ + +JOSM imagery database is licensed under Creative Commons (CC-BY-SA). +Content since April 2014 is dual licensed with LGPL (except contents copied from ELI, which is only CC-BY-SA). + +https://creativecommons.org/licenses/by-sa/3.0/ + +Source: https://josm.openstreetmap.de/wiki/Maps#Otherimportantinformation