Methods
- 
  
import {sourcesFromTileGrid} from 'ol/source';Creates a sources function from a tile grid. This function can be used as value for the
sourcesproperty of themodule:ol/layer/Layer~Layersubclasses that support it.Name Type Description tileGridmodule:ol/tilegrid/TileGrid~TileGrid Tile grid.
factoryfunction Source factory. This function takes a
module:ol/tilecoord~TileCoordas argument and is expected to return amodule:ol/source/Source~Source. Note: The returned sources should have a tile grid with a limited set of resolutions, matching the resolution range of a single zoom level of the pyramidtileGridthatcreateFromTileGridwas called with.Returns:
Sources function.
 
 OpenLayers