From dd951a9b35b59b719b8c34bd3bf1ea4c9a459bd9 Mon Sep 17 00:00:00 2001 From: john gravois Date: Fri, 29 Jun 2018 09:20:05 -0700 Subject: [PATCH 1/2] use 22 as maxZoom for Esri imagery (selectively) --- modules/renderer/background_source.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/renderer/background_source.js b/modules/renderer/background_source.js index 0747969727..fb2bd047db 100644 --- a/modules/renderer/background_source.js +++ b/modules/renderer/background_source.js @@ -338,7 +338,7 @@ rendererBackgroundSource.Esri = function(data) { } // if any tiles are missing at level 20 we restrict maxZoom to 19 - esri.scaleExtent[1] = (hasTiles ? 20 : 19); + esri.scaleExtent[1] = (hasTiles ? 22 : 19); }); }; From 50c371f77bbaa73c7e44b77626a04dbd2c648b98 Mon Sep 17 00:00:00 2001 From: john gravois Date: Fri, 29 Jun 2018 09:57:52 -0700 Subject: [PATCH 2/2] continue to catch 404s --- modules/renderer/background_source.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/renderer/background_source.js b/modules/renderer/background_source.js index fb2bd047db..05c27ee48f 100644 --- a/modules/renderer/background_source.js +++ b/modules/renderer/background_source.js @@ -299,6 +299,11 @@ rendererBackgroundSource.Bing = function(data, dispatch) { rendererBackgroundSource.Esri = function(data) { + // in addition to using the tilemap at zoom level 20, overzoom real tiles - #4327 (deprecated technique, but it works) + if (data.template.match(/blankTile/) === null) { + data.template = data.template + '?blankTile=false'; + } + var esri = rendererBackgroundSource(data); var cache = {}; var inflight = {};