Class: ImageTile

ol/ImageTile~ImageTile


Extends

Methods

getImage(){HTMLCanvasElement|HTMLImageElement|HTMLVideoElement}

ImageTile.js, line 83

Get the HTML image element for this tile (may be a Canvas, Image, or Video).

Returns:
Image.

getTileCoord(){module:ol/tilecoord~TileCoord} inherited

Tile.js, line 212

Get the tile coordinate for this tile.

Returns:
The tile coordinate.

load() inherited

Tile.js, line 243

Load the image or retry if loading previously failed. Loading is taken care of by the tile queue, and calling this method is only needed for preloading or for reloading in case of an error.

setState(state) inherited

Tile.js, line 231

Sets the state of this tile. If you write your own tileLoadFunction , it is important to set the state correctly to module:ol/TileState~ERROR when the tile cannot be loaded. Otherwise the tile cannot be removed from the tile queue and will block other requests.

Name Type Description
state module:ol/TileState

State.