Module: ol/source/OGCVectorTile

ol/source/OGCVectorTile


Classes

OGCVectorTile

Type Definitions

Options{Object}

Properties:
Name Type Description
url string

OGC Vector Tileset 端点的 URL。

context Object | undefined

在瓦片 URL 模板中使用的值查找表。URL 中的 {tileMatrix}(缩放级别)、{tileRow}{tileCol} 变量将始终由数据源提供。

format 要素Format<要素Type> | undefined

瓦片的要素格式。默认使用并要求提供。

mediaType string | undefined

瓦片的内容类型(如 "application/vnd.mapbox-vector-tile")。如果未提供,数据源将尝试找到使用配置格式支持的矢量类型的 rel="item" 链接。

attributions AttributionLike | undefined

归属信息。

attributionsCollapsible boolean
(defaults to true)

归属信息是否可折叠。

cacheSize number | undefined

已弃用。 请改用图层上的 cacheSize 选项。

overlaps boolean
(defaults to true)

此数据源可能有重叠的几何图形。将此设置为 false(例如对于表示行政边界多边形的数据源或 TopoJSON 数据源)允许渲染器优化填充和描边操作。

projection ProjectionLike
(defaults to 'EPSG:3857')

瓦片网格的投影。

tileClass Class<VectorTile> | undefined

用于实例化图像瓦片的类。默认为 VectorTile

transition number | undefined

瓦片不透明度过渡的持续时间(毫秒)。持续时间为 0 将禁用不透明度过渡。

wrapX boolean
(defaults to true)

是否水平环绕世界。设置为 false 时,仅渲染一个世界。设置为 true 时,瓦片将水平包裹以渲染多个世界。

zDirection number | NearestDirection函数
(defaults to 1)

选择在整数缩放级别之间使用更高还是更低缩放级别的瓦片。参见 getZForResolution

collections Array.<string> | undefined

要包含的地理空间数据子资源列表。如果未提供,将包含整个数据集。此选项不适用于请求单个集合的瓦片集。