package.VectorRenderTile.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ol Show documentation
Show all versions of ol Show documentation
OpenLayers mapping library
The newest version!
export default VectorRenderTile;
export type ReplayState = {
/**
* Dirty.
*/
dirty: boolean;
/**
* RenderedRenderOrder.
*/
renderedRenderOrder: null | import("./render.js").OrderFunction;
/**
* RenderedTileRevision.
*/
renderedTileRevision: number;
/**
* RenderedResolution.
*/
renderedResolution: number;
/**
* RenderedRevision.
*/
renderedRevision: number;
/**
* RenderedTileResolution.
*/
renderedTileResolution: number;
/**
* RenderedTileZ.
*/
renderedTileZ: number;
};
declare class VectorRenderTile extends Tile {
/**
* @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate.
* @param {import("./TileState.js").default} state State.
* @param {import("./tilecoord.js").TileCoord} urlTileCoord Wrapped tile coordinate for source urls.
* @param {function(VectorRenderTile):Array} getSourceTiles Function.
* @param {function(VectorRenderTile):void} removeSourceTiles Function.
*/
constructor(tileCoord: import("./tilecoord.js").TileCoord, state: any, urlTileCoord: import("./tilecoord.js").TileCoord, getSourceTiles: (arg0: VectorRenderTile) => Array>, removeSourceTiles: (arg0: VectorRenderTile) => void);
/**
* @private
* @type {CanvasRenderingContext2D|null}
*/
private context_;
/**
* Executor groups. Read/written by the renderer.
* @type {Array}
*/
executorGroups: Array;
/**
* Number of loading source tiles. Read/written by the source.
* @type {number}
*/
loadingSourceTiles: number;
/**
* @type {Object}
*/
hitDetectionImageData: {
[x: number]: ImageData;
};
/**
* @private
* @type {!Object}
*/
private replayState_;
/**
* @type {Array}
*/
sourceTiles: Array>;
/**
* @type {Object}
*/
errorTileKeys: {
[x: string]: boolean;
};
/**
* @type {number}
*/
wantedResolution: number;
/**
* @type {!function():Array}
*/
getSourceTiles: () => Array>;
/**
* @type {!function(VectorRenderTile):void}
* @private
*/
private removeSourceTiles_;
/**
* @type {import("./tilecoord.js").TileCoord}
*/
wrappedTileCoord: import("./tilecoord.js").TileCoord;
/**
* @return {CanvasRenderingContext2D} The rendering context.
*/
getContext(): CanvasRenderingContext2D;
/**
* @return {boolean} Tile has a rendering context.
*/
hasContext(): boolean;
/**
* Get the Canvas for this tile.
* @return {HTMLCanvasElement} Canvas.
*/
getImage(): HTMLCanvasElement;
/**
* @param {import("./layer/Layer.js").default} layer Layer.
* @return {ReplayState} The replay state.
*/
getReplayState(layer: import("./layer/Layer.js").default): ReplayState;
}
import Tile from './Tile.js';
//# sourceMappingURL=VectorRenderTile.d.ts.map