Add the description of setMaxLevel

This commit is contained in:
Sanghoon Kim 2021-11-30 13:23:30 +09:00
parent f8c97143e8
commit 24d5d98548

View File

@ -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 * @function
* @param {Number} level * @param {Number} level
*/ */