From 2c65fcea66d0ac7a4811de02887518ec741c746f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Tue, 3 Sep 2019 13:14:05 +0200 Subject: [PATCH] Replace proprietary Thunderforest tiles with Wikimedia tiles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thunderforest Maps are proprietary and require an api key. As I quite like the Wikimedia map style as it has a very low contrast which makes nodes and connections between them stand out way more. URLs for the Thunderforest Map will point to Wikimedia now. Signed-off-by: Fabian Bläse [Do not introduce new id to source URL parameter] Signed-off-by: Adrian Schmutzler --- ffmap/web/static/js/map.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ffmap/web/static/js/map.js b/ffmap/web/static/js/map.js index cbf7c1b..abd409e 100644 --- a/ffmap/web/static/js/map.js +++ b/ffmap/web/static/js/map.js @@ -10,8 +10,8 @@ var tilesosmde = new L.TileLayer('https://{s}.osm.rrze.fau.de/osmde/{z}/{x}/{y}. maxNativeZoom: 19, maxZoom: 22 }); -var tilestfod = new L.TileLayer('https://{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png', { - attribution: 'Maps © Thunderforest, Data © OpenStreetMap contributors', +var tileswiki = new L.TileLayer('https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png', { + attribution: 'Maps © Wikimedia Maps, Data © OpenStreetMap contributors', maxNativeZoom: 22, maxZoom: 22 }); @@ -34,7 +34,7 @@ var popuplayer = new L.TileLayer(''); layersControl = new L.Control.Layers({ "openstreetmap.org": tilesosmorg, "openstreetmap.de": tilesosmde, - "Thunderforest Outdoors": tilestfod + "Wikimedia": tileswiki }, { "Routers V1": routers, "Routers V2": routers_v2, @@ -84,7 +84,7 @@ function initialLayers() { function setupMap(getargs) { var getsrc = getargs.replace("source=", ""); if(getsrc==2) { map.addLayer(tilesosmde); } - else if(getsrc==3) { map.addLayer(tilestfod); } + else if(getsrc==3) { map.addLayer(tileswiki); } else { map.addLayer(tilesosmorg); } } function setupLayers(getargs) {