From 6a77c826e400daaa77d78ed0f3ede1e6ce15ee46 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Fri, 24 Jul 2015 18:42:33 +0200 Subject: [PATCH] OpenTopoMap max zoom on fallback server only z15, fixes #21; also fix max zoom for other services to actual --- js/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/index.js b/js/index.js index 87b8037..9a16d4b 100644 --- a/js/index.js +++ b/js/index.js @@ -20,13 +20,13 @@ }); var osmde = L.tileLayer('http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png', { - maxZoom: 19, + maxZoom: 18, attribution: 'tiles by openstreetmap.de ' + osmAttribution }); var topo = L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', { minZoom: 5, - maxZoom: 16, + maxZoom: 15, attribution: 'tiles © OpenTopoMap, CC-BY-SA' + ', SRTM' }); @@ -43,13 +43,13 @@ }); var cycling = L.tileLayer('http://tile.waymarkedtrails.org/cycling/{z}/{x}/{y}.png', { - maxZoom: 19, + maxZoom: 18, opacity: 0.7, attribution: 'Cycling © Waymarked Trails ' + '(CC-BY-SA 3.0 DE)' }); var hiking = L.tileLayer('http://tile.waymarkedtrails.org/hiking/{z}/{x}/{y}.png', { - maxZoom: 19, + maxZoom: 18, opacity: 0.7, attribution: 'Hiking © Waymarked Trails ' + '(CC-BY-SA 3.0 DE)'