diff options
-rw-r--r-- | src/js/app/mapfactory.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/js/app/mapfactory.js b/src/js/app/mapfactory.js index 4802f50..cd32bbc 100644 --- a/src/js/app/mapfactory.js +++ b/src/js/app/mapfactory.js @@ -1,10 +1,12 @@ define(['leaflet'], function(L) { // base config var attribOSM = '© <a href="https://www.openstreetmap.org/">OpenStreetMap-bidragydere</a>'; - var licenseCcBySa2 = 'under en <a href="https://creativecommons.org/licenses/by-sa/2.0/">Creative Commons Kreditering-DelPåSammeVilkår</a> licens.'; + var attribCarto = '© <a href="https://cartodb.com/attributions">CARTO</a>'; var licenseODbL ='under licensen <a href="https://opendatacommons.org/licenses/odbl/1.0/">ODbL 1.0</a>'; - var TileLayer = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { - attribution: attribOSM + ', kartografi ' + licenseCcBySa2 + ', kortdata ' + licenseODbL + var TileLayer = L.tileLayer('https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png', { + attribution: 'Kartografi ' + attribCarto + ' — kortdata ' + attribOSM + ' ' + licenseODbL, + subdomains: 'abcd', + maxZoom: 19 }), scale = L.control.scale({ imperial: false |