ol/source
import * as olSource from 'ol/source';
Functions
-
import {sourcesFromTileGrid} from 'ol/source';Creates a sources function from a tile grid. This function can be used as value for the
sourcesproperty of theLayersubclasses that support it.Name Type Description tileGridTileGrid Tile grid.
factoryfunction Source factory. This function takes a
TileCoordas argument and is expected to return aSource. 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 pyramidtileGridthatsourcesFromTileGridwas called with.Returns:
Sources function.
© 2005-present, OpenLayers Contributors All rights reserved.Licensed under the BSD 2-Clause License.
https://openlayers.org/en/latest/apidoc/module-ol_source.html