函数s
-
import {sourcesFromTileGrid} from 'ol/source';从瓦片网格创建数据源函数。此函数可用作支持此属性的 Layer 子类的 sources 属性的值。
Name Type Description tileGridTileGrid 瓦片网格。
factoryfunction 数据源工厂。此函数接受
TileCoord作为参数,预期返回Source。注意:返回的数据源应具有包含有限分辨率集的瓦片网格,与调用sourcesFromTileGrid时使用的金字塔tileGrid的单个缩放级别的分辨率范围匹配。返回值:
Sources function.