mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Fix maxLevel typo
This commit is contained in:
parent
24d5d98548
commit
7686812336
@ -306,8 +306,8 @@ $.TileSource.prototype = {
|
|||||||
// a memoized re-implementation
|
// a memoized re-implementation
|
||||||
var levelScaleCache = {},
|
var levelScaleCache = {},
|
||||||
i;
|
i;
|
||||||
for( i = 0; i <= this.maxlevel; i++ ){
|
for( i = 0; i <= this.maxLevel; i++ ){
|
||||||
levelScaleCache[ i ] = 1 / Math.pow(2, this.maxlevel - i);
|
levelScaleCache[ i ] = 1 / Math.pow(2, this.maxLevel - i);
|
||||||
}
|
}
|
||||||
this.getLevelScale = function( _level ){
|
this.getLevelScale = function( _level ){
|
||||||
return levelScaleCache[ _level ];
|
return levelScaleCache[ _level ];
|
||||||
|
Loading…
Reference in New Issue
Block a user