diff options
author | Jonas Smedegaard <dr@jones.dk> | 2018-05-13 13:59:07 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2018-05-13 13:59:07 +0200 |
commit | a099bb4e3f87fa33784495880cf3b85ac2fd418b (patch) | |
tree | a183b055ee2d6e8ee7803e2db7c1a3b76b12eb65 | |
parent | f77c9e7badf8db8d4a0d30764ebab5545ea111dd (diff) |
Improve attribution. Mention map data license.
-rw-r--r-- | src/js/app/mapfactory.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/js/app/mapfactory.js b/src/js/app/mapfactory.js index f54060d..647ef31 100644 --- a/src/js/app/mapfactory.js +++ b/src/js/app/mapfactory.js @@ -1,9 +1,10 @@ define(['leaflet'], function(L) { // base config - var attribOSM = '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', - attribCarto = '© <a href="http://cartodb.com/attributions">CartoDB</a>', - TileLayer = L.tileLayer('https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png', { - attribution: 'Imagery ' + attribCarto + ' — Map data ' + attribOSM, + var attribOSM = '© <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors'; + var attribCarto = '© <a href="https://cartodb.com/attributions">CARTO</a>'; + var licenseODbL ='under the <a href="https://opendatacommons.org/licenses/odbl/1.0/">ODbL 1.0</a> license'; + var TileLayer = L.tileLayer('https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png', { + attribution: 'Imagery ' + attribCarto + ' — Map data ' + attribOSM + ' ' + licenseODbL, subdomains: 'abcd', maxZoom: 19 }), |