Module: ol/Tile

ol/Tile


Classes

Tile

Type Definitions

LoadFunction()

Tile.js, line 10

A function that takes an module:ol/Tile~Tile for the tile and a {string} for the url as arguments.

Options{Object}

Properties:
Name Type Argument Default Description
transition number <optional>
250

A duration for tile opacity transitions in milliseconds. A duration of 0 disables the opacity transition.

UrlFunction()

Tile.js, line 18

module:ol/source/Tile~Tile sources use a function of this type to get the url that provides a tile for a given tile coordinate.

This function takes an module:ol/tilecoord~TileCoord for the tile coordinate, a {number} representing the pixel ratio and a module:ol/proj/Projection~Projection for the projection as arguments and returns a {string} representing the tile URL, or undefined if no tile should be requested for the passed tile coordinate.