Module: ol/source/DataTile

ol/source/DataTile


Classes

DataTileSource

Type Definitions

Options{Object}

Properties:
Name Type Argument Default Description
loader function <optional>

Data loader. Called with z, x, and y tile coordinates. Returns a promise that resolves to a module:ol/DataTile~Data.

maxZoom number <optional>
42

Optional max zoom level. Not used if tileGrid is provided.

minZoom number <optional>
0

Optional min zoom level. Not used if tileGrid is provided.

tileSize number | module:ol/size~Size <optional>
[256, 256]

The pixel width and height of the tiles.

maxResolution number <optional>

Optional tile grid resolution at level zero. Not used if tileGrid is provided.

projection module:ol/proj~ProjectionLike <optional>
'EPSG:3857'

Tile projection.

tileGrid module:ol/tilegrid/TileGrid~TileGrid <optional>

Tile grid.

opaque boolean <optional>
false

Whether the layer is opaque.

state module:ol/source/State <optional>

The source state.

cacheSize number <optional>

Number of tiles to retain in the cache.

tilePixelRatio number <optional>

Tile pixel ratio.

wrapX boolean <optional>
true

Render tiles beyond the antimeridian.

transition number <optional>

Transition time when fading in new tiles (in miliseconds).