diff --git a/src/tilesource.js b/src/tilesource.js index 7b5d7acf..32df56cf 100644 --- a/src/tilesource.js +++ b/src/tilesource.js @@ -306,8 +306,8 @@ $.TileSource.prototype = { // a memoized re-implementation var levelScaleCache = {}, i; - for( i = 0; i <= this.maxlevel; i++ ){ - levelScaleCache[ i ] = 1 / Math.pow(2, this.maxlevel - i); + for( i = 0; i <= this.maxLevel; i++ ){ + levelScaleCache[ i ] = 1 / Math.pow(2, this.maxLevel - i); } this.getLevelScale = function( _level ){ return levelScaleCache[ _level ];