Module: ol/source

ol/source


import * as olSource from 'ol/source';

函数s

sourcesFromTileGrid(tileGrid, factory){function}

import {sourcesFromTileGrid} from 'ol/source';

从瓦片网格创建数据源函数。此函数可用作支持此属性的 Layer 子类的 sources 属性的值。

Name Type Description
tileGrid TileGrid

瓦片网格。

factory function

数据源工厂。此函数接受 TileCoord 作为参数,预期返回 Source注意:返回的数据源应具有包含有限分辨率集的瓦片网格,与调用 sourcesFromTileGrid 时使用的金字塔 tileGrid 的单个缩放级别的分辨率范围匹配。

返回值:
Sources function.