From ba437260f11bd61faa8105d936a2a78c1645a732 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Tue, 13 May 2014 11:28:51 +0200 Subject: [PATCH] add German style --- js/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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