Skip to content

Commit

Permalink
Merge pull request openlayers#14173 from MoonE/tileimage-type
Browse files Browse the repository at this point in the history
Only TileImage as ReprojTile source tile type
  • Loading branch information
MoonE authored Oct 5, 2022
2 parents 35eef85 + 677497a commit daf604b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ol/reproj/Tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down Expand Up @@ -103,7 +103,7 @@ class ReprojTile extends Tile {

/**
* @private
* @type {!Array<ReprojTile|import("../ImageTile.js").default>}
* @type {!Array<import("../ImageTile.js").default>}
*/
this.sourceTiles_ = [];

Expand Down
2 changes: 1 addition & 1 deletion src/ol/source/TileImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit daf604b

Please sign in to comment.