From 7686812336a69ea7742f7d73481fa112f1ae7997 Mon Sep 17 00:00:00 2001 From: Sanghoon Kim <20144277+kim-sanghoon@users.noreply.github.com> Date: Wed, 1 Dec 2021 10:01:18 +0900 Subject: [PATCH] Fix maxLevel typo --- src/tilesource.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ];