From 24d5d985482df6c1dd98eb9f962e07a11a6ffc4c Mon Sep 17 00:00:00 2001 From: Sanghoon Kim <20144277+kim-sanghoon@users.noreply.github.com> Date: Tue, 30 Nov 2021 13:23:30 +0900 Subject: [PATCH] Add the description of setMaxLevel --- src/tilesource.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tilesource.js b/src/tilesource.js index c6bcd8e4..7b5d7acf 100644 --- a/src/tilesource.js +++ b/src/tilesource.js @@ -276,6 +276,10 @@ $.TileSource.prototype = { }, /** + * Set the maxLevel to the given level, and perform the memoization of + * getLevelScale with the new maxLevel. This function can be useful if the + * memoization is required before the first call of getLevelScale, or both + * memoized getLevelScale and maxLevel should be changed accordingly. * @function * @param {Number} level */