diff --git a/js/index.js b/js/index.js index 68c0ca3..fba2e3e 100644 --- a/js/index.js +++ b/js/index.js @@ -7,9 +7,16 @@ (function() { function initMap() { + var osmAttribution = '© OpenStreetMap contributors'; + var osm = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19, - attribution: 'tiles © OpenStreetMap contributors' + attribution: 'tiles ' + osmAttribution + }); + + var osmde = L.tileLayer('http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png', { + maxZoom: 19, + attribution: 'tiles by openstreetmap.de ' + osmAttribution }); var topo = L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', { @@ -42,6 +49,7 @@ L.control.layers({ 'OpenStreetMap': osm, + 'OpenStreetMap.de': osmde, 'OpenTopoMap': topo, 'OpenCycleMap': cycle, 'Outdoors': outdoors