Remove opt_this param in manageTilePyramid function
This commit is contained in:
@@ -221,10 +221,8 @@ class LayerRenderer extends Observable {
|
|||||||
* @param {import("../extent.js").Extent} extent Extent.
|
* @param {import("../extent.js").Extent} extent Extent.
|
||||||
* @param {number} currentZ Current Z.
|
* @param {number} currentZ Current Z.
|
||||||
* @param {number} preload Load low resolution tiles up to 'preload' levels.
|
* @param {number} preload Load low resolution tiles up to 'preload' levels.
|
||||||
* @param {function(this: T, import("../Tile.js").default)=} opt_tileCallback Tile callback.
|
* @param {function(import("../Tile.js").default)=} opt_tileCallback Tile callback.
|
||||||
* @param {T=} opt_this Object to use as `this` in `opt_tileCallback`.
|
|
||||||
* @protected
|
* @protected
|
||||||
* @template T
|
|
||||||
*/
|
*/
|
||||||
manageTilePyramid(
|
manageTilePyramid(
|
||||||
frameState,
|
frameState,
|
||||||
@@ -235,8 +233,7 @@ class LayerRenderer extends Observable {
|
|||||||
extent,
|
extent,
|
||||||
currentZ,
|
currentZ,
|
||||||
preload,
|
preload,
|
||||||
opt_tileCallback,
|
opt_tileCallback
|
||||||
opt_this
|
|
||||||
) {
|
) {
|
||||||
const tileSourceKey = getUid(tileSource);
|
const tileSourceKey = getUid(tileSource);
|
||||||
if (!(tileSourceKey in frameState.wantedTiles)) {
|
if (!(tileSourceKey in frameState.wantedTiles)) {
|
||||||
@@ -261,7 +258,7 @@ class LayerRenderer extends Observable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (opt_tileCallback !== undefined) {
|
if (opt_tileCallback !== undefined) {
|
||||||
opt_tileCallback.call(opt_this, tile);
|
opt_tileCallback(tile);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
tileSource.useTile(z, x, y, projection);
|
tileSource.useTile(z, x, y, projection);
|
||||||
|
|||||||
Reference in New Issue
Block a user