MVTDataProvider
Cesium v1.147 · 中文

一个 Mapbox Vector Tiles (MVT) 数据提供器。加载 .mvt 或 .pbf 瓦片,并在运行时动态转换为 3D Tiles。 在运行时动态转换。
通常不直接实例化此对象,请使用 MVTDataProvider.fromUrl。

new Cesium.MVTDataProvider()

Experimental

This 该功能尚未最终确定,可能会根据 Cesium 的标准弃用政策进行变更。

Extends

Members

readonly extent : Rectangle|undefined

用于生成瓦片标题的以弧度表示的可选地理范围。
Inherited From:
此实例提供的特征层,每个 MVT 源层一个。层在包含其特征的第一个瓦片加载时添加,因此层顺序遵循 瓦片加载顺序;使用 FeatureLayerCollection#getByName 查找层。 tile load order; use FeatureLayerCollection#getByName to find a layer.
从 URL 模板派生的资源。
Inherited From:
决定生成的瓦片集是否显示。
Inherited From:
3D Tileset 背景层。
Inherited From:
包含 {z}/{x}/{y} 的 URL 模板。
Inherited From:

Methods

async static Cesium.MVTDataProvider.fromUrl(url, options) → Promise.<MVTDataProvider>

从指定的 URL 模板和选项中创建 MVTDataProvider。
Name Type Description
url Resource | string URL 模板,包含 {z}、{x} 和 {y} 占位符。
options object optional 提供器选项。
Name Type Default Description
minZoom number 0 optional 生成的瓦片集中表示的最小缩放级别。
maxZoom number 14 optional 生成的瓦片集中表示的最大缩放级别。
extent Rectangle optional 以弧度表示的可选地理范围,用于约束生成的瓦片树。
featureIdProperty string optional 用作特征 ID 的 MVT 属性名称。
heightReference HeightReference optional 将解码后的点、线和多边形平铺到 由 HeightReference.CLAMP_TO_TERRAIN 指定的表面上;在地球仪上平铺, HeightReference.CLAMP_TO_3D_TILE 在 3D Tiles 和模型上平铺,以及 HeightReference.CLAMP_TO_GROUND 在两者上均进行平铺。需要 options.scene。
scene Scene optional 生成瓦片集的渲染场景,当 options.heightReference 为限制值时所需。
Returns:

protected _createRuntimeTilesetOptions()

Inherited From:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.