mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 22:56:11 +03:00
Use TileSource.getClosestLevel to set TileCache release cutoff
This commit is contained in:
parent
265625df75
commit
e4393cc4dc
@ -1468,8 +1468,7 @@ function onTileLoad( tiledImage, tile, time, image, errorMsg, tileRequest ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var finish = function() {
|
var finish = function() {
|
||||||
var cutoff = Math.ceil( Math.log(
|
var cutoff = tiledImage.source.getClosestLevel();
|
||||||
tiledImage.source.getTileWidth(tile.level) ) / Math.log( 2 ) );
|
|
||||||
setTileLoaded(tiledImage, tile, image, cutoff, tileRequest);
|
setTileLoaded(tiledImage, tile, image, cutoff, tileRequest);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user