mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Merge pull request #1214 from seanich/cache-cutoff
Use TileSource.getClosestLevel to set TileCache release cutoff
This commit is contained in:
commit
0f6fedb057
@ -1468,8 +1468,7 @@ function onTileLoad( tiledImage, tile, time, image, errorMsg, tileRequest ) {
|
||||
}
|
||||
|
||||
var finish = function() {
|
||||
var cutoff = Math.ceil( Math.log(
|
||||
tiledImage.source.getTileWidth(tile.level) ) / Math.log( 2 ) );
|
||||
var cutoff = tiledImage.source.getClosestLevel();
|
||||
setTileLoaded(tiledImage, tile, image, cutoff, tileRequest);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user