UNPKG

621 BTypeScriptView Raw
1import Tile, { LoadFunction, Options } from './Tile';
2import { TileCoord } from './tilecoord';
3import TileState from './TileState';
4
5export default class ImageTile extends Tile {
6 constructor(
7 tileCoord: TileCoord,
8 state: TileState,
9 src: string,
10 crossOrigin: string,
11 tileLoadFunction: LoadFunction,
12 opt_options?: Options,
13 );
14 /**
15 * Get the HTML image element for this tile (may be a Canvas, Image, or Video).
16 */
17 getImage(): HTMLCanvasElement | HTMLImageElement | HTMLVideoElement;
18 /**
19 * Load not yet loaded URI.
20 */
21 load(): void;
22}