Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jgravois committed Oct 6, 2017
1 parent 8fb2eb9 commit 3e2ab5a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Layers/BasemapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ export var BasemapLayer = TileLayer.extend({

map.on('moveend', _updateMapAttribution);

map.on('zoomanim', _fetchTilemap, this);
// Esri World Imagery is cached all the way to zoom 22 in select regions
if (this._url.indexOf('World_Imagery') !== -1) {
map.on('zoomanim', _fetchTilemap, this);
}

TileLayer.prototype.onAdd.call(this, map);
},
Expand All @@ -243,11 +246,6 @@ export var BasemapLayer = TileLayer.extend({
}
});

/*
to do:
implement same logic on big pans?
try and get rid of the screen flash when missing tiles are replaced with resampled tiles
*/
function _fetchTilemap (evt) {
var map = evt.target;
if (!map) { return; }
Expand Down

0 comments on commit 3e2ab5a

Please sign in to comment.