diff --git a/src/tiledimage.js b/src/tiledimage.js index d705240b..f7080aa7 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -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); };