Class: TileSource

ol/source/Tile~TileSource


import TileSource from 'ol/source/Tile';

Abstract base class; normally only used for creating subclasses and not instantiated in apps. Base class for sources providing images divided into a tile grid.

new TileSource(options)

source/Tile.js, line 37
Name Type Description
options

SourceTile source options.

Name Type Default Description
attributions module:ol/source/Source~AttributionLike
cacheSize number
extent module:ol/extent~Extent
opaque boolean
tilePixelRatio number
projection module:ol/proj~ProjectionLike
state module:ol/source/State
tileGrid module:ol/tilegrid/TileGrid~TileGrid
wrapX boolean true
transition number

Methods

getTileGrid(){module:ol/tilegrid/TileGrid~TileGrid}

source/Tile.js, line 210

Return the tile grid of the tile source.

Returns:
Tile grid.