From a099bb4e3f87fa33784495880cf3b85ac2fd418b Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 13 May 2018 13:59:07 +0200 Subject: Improve attribution. Mention map data license. --- src/js/app/mapfactory.js | 9 +++++---- 1 file 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 = '© OpenStreetMap contributors', - attribCarto = '© CartoDB', - 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 = '© OpenStreetMap contributors'; + var attribCarto = '© CARTO'; + var licenseODbL ='under the ODbL 1.0 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 }), -- cgit v1.2.3