You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
3.3 KiB
99 lines
3.3 KiB
export default ReprojTile;
|
|
export type FunctionType = (arg0: number, arg1: number, arg2: number, arg3: number) => import("../Tile.js").default;
|
|
/**
|
|
* @typedef {function(number, number, number, number) : import("../Tile.js").default} FunctionType
|
|
*/
|
|
/**
|
|
* @classdesc
|
|
* Class encapsulating single reprojected tile.
|
|
* See {@link module:ol/source/TileImage~TileImage}.
|
|
*
|
|
*/
|
|
declare class ReprojTile extends Tile {
|
|
/**
|
|
* @param {import("../proj/Projection.js").default} sourceProj Source projection.
|
|
* @param {import("../tilegrid/TileGrid.js").default} sourceTileGrid Source tile grid.
|
|
* @param {import("../proj/Projection.js").default} targetProj Target projection.
|
|
* @param {import("../tilegrid/TileGrid.js").default} targetTileGrid Target tile grid.
|
|
* @param {import("../tilecoord.js").TileCoord} tileCoord Coordinate of the tile.
|
|
* @param {import("../tilecoord.js").TileCoord} wrappedTileCoord Coordinate of the tile wrapped in X.
|
|
* @param {number} pixelRatio Pixel ratio.
|
|
* @param {number} gutter Gutter of the source tiles.
|
|
* @param {FunctionType} getTileFunction
|
|
* Function returning source tiles (z, x, y, pixelRatio).
|
|
* @param {number} [errorThreshold] Acceptable reprojection error (in px).
|
|
* @param {boolean} [renderEdges] Render reprojection edges.
|
|
* @param {boolean} [interpolate] Use linear interpolation when resampling.
|
|
*/
|
|
constructor(sourceProj: import("../proj/Projection.js").default, sourceTileGrid: import("../tilegrid/TileGrid.js").default, targetProj: import("../proj/Projection.js").default, targetTileGrid: import("../tilegrid/TileGrid.js").default, tileCoord: import("../tilecoord.js").TileCoord, wrappedTileCoord: import("../tilecoord.js").TileCoord, pixelRatio: number, gutter: number, getTileFunction: FunctionType, errorThreshold?: number | undefined, renderEdges?: boolean | undefined, interpolate?: boolean | undefined);
|
|
/**
|
|
* @private
|
|
* @type {boolean}
|
|
*/
|
|
private renderEdges_;
|
|
/**
|
|
* @private
|
|
* @type {number}
|
|
*/
|
|
private pixelRatio_;
|
|
/**
|
|
* @private
|
|
* @type {number}
|
|
*/
|
|
private gutter_;
|
|
/**
|
|
* @private
|
|
* @type {HTMLCanvasElement}
|
|
*/
|
|
private canvas_;
|
|
/**
|
|
* @private
|
|
* @type {import("../tilegrid/TileGrid.js").default}
|
|
*/
|
|
private sourceTileGrid_;
|
|
/**
|
|
* @private
|
|
* @type {import("../tilegrid/TileGrid.js").default}
|
|
*/
|
|
private targetTileGrid_;
|
|
/**
|
|
* @private
|
|
* @type {import("../tilecoord.js").TileCoord}
|
|
*/
|
|
private wrappedTileCoord_;
|
|
/**
|
|
* @private
|
|
* @type {!Array<import("../Tile.js").default>}
|
|
*/
|
|
private sourceTiles_;
|
|
/**
|
|
* @private
|
|
* @type {?Array<import("../events.js").EventsKey>}
|
|
*/
|
|
private sourcesListenerKeys_;
|
|
/**
|
|
* @private
|
|
* @type {number}
|
|
*/
|
|
private sourceZ_;
|
|
/**
|
|
* @private
|
|
* @type {!import("./Triangulation.js").default}
|
|
*/
|
|
private triangulation_;
|
|
/**
|
|
* Get the HTML Canvas element for this tile.
|
|
* @return {HTMLCanvasElement} Canvas.
|
|
*/
|
|
getImage(): HTMLCanvasElement;
|
|
/**
|
|
* @private
|
|
*/
|
|
private reproject_;
|
|
/**
|
|
* @private
|
|
*/
|
|
private unlistenSources_;
|
|
}
|
|
import Tile from "../Tile.js";
|
|
//# sourceMappingURL=Tile.d.ts.map
|