Skip to content

Commit

Permalink
Merge pull request #5116 from jgravois/patch-1
Browse files Browse the repository at this point in the history
use 22 as maxZoom for Esri imagery (selectively)
  • Loading branch information
bhousel authored Jun 29, 2018
2 parents 21a7ed2 + 50c371f commit 9ba517e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/renderer/background_source.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down Expand Up @@ -338,7 +343,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);
});
};

Expand Down

0 comments on commit 9ba517e

Please sign in to comment.