From 677497aa8d10ae9e5cbbe41b949b58bdc9bae451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Tue, 4 Oct 2022 23:47:59 +0200 Subject: [PATCH] Only TileImage as ReprojTile source tile type --- src/ol/reproj/Tile.js | 4 ++-- src/ol/source/TileImage.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ol/reproj/Tile.js b/src/ol/reproj/Tile.js index 84c93c1eae0..32f0d35b393 100644 --- a/src/ol/reproj/Tile.js +++ b/src/ol/reproj/Tile.js @@ -18,7 +18,7 @@ import {listen, unlistenByKey} from '../events.js'; import {releaseCanvas} from '../dom.js'; /** - * @typedef {function(number, number, number, number) : (ReprojTile|import("../ImageTile.js").default)} FunctionType + * @typedef {function(number, number, number, number) : (import("../ImageTile.js").default)} FunctionType */ /** @@ -103,7 +103,7 @@ class ReprojTile extends Tile { /** * @private - * @type {!Array} + * @type {!Array} */ this.sourceTiles_ = []; diff --git a/src/ol/source/TileImage.js b/src/ol/source/TileImage.js index 15c264c2367..201505c0a8a 100644 --- a/src/ol/source/TileImage.js +++ b/src/ol/source/TileImage.js @@ -352,7 +352,7 @@ class TileImage extends UrlTile { * @param {number} y Tile coordinate y. * @param {number} pixelRatio Pixel ratio. * @param {!import("../proj/Projection.js").default} projection Projection. - * @return {!(ImageTile|ReprojTile)} Tile. + * @return {!ImageTile} Tile. * @protected */ getTileInternal(z, x, y, pixelRatio, projection) {