UrlTemplate3DTilesDataProvider
Cesium v1.147 · 中文

用于通过运行时生成的 3D Tiles 瓦片集渲染的 URL-模板向量源的基础提供器。 用于运行时生成的 3D Tiles 瓦片集。

new Cesium.UrlTemplate3DTilesDataProvider(urlTemplate, options)

Name Type Description
urlTemplate Resource | string 包含 {z}、{x} 和 {y} 占位符的 URL 模板。
options object optional 提供器选项。
Name Type Default Description
minZoom number 0 optional 生成的瓦片集中所表示的最小缩放级别。
maxZoom number 14 optional 生成瓦片集中所表示的最大缩放级别。
extent Rectangle optional 以弧度表示的可选地理范围,用于限制生成的瓦片树。
featureIdProperty string optional 当内容解码支持时,用作实体 ID 的特性属性名称。
heightReference HeightReference optional 将向量内容覆盖在由 值选定的表面之上。需要 options.scene。
scene Scene optional 生成瓦片集所渲染的场景,当 options.heightReference 为限制值时必需。
Experimental

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

Members

readonly extent : Rectangle|undefined

用于生成瓦片标题的以弧度表示的可选地理范围。
从 URL 模板派生的资源。
决定生成的瓦片集是否显示。
3D Tileset 背景层。
包含 {z}/{x}/{y} 的 URL 模板。

Methods

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

从 URL 模板创建提供器。
Name Type Description
url Resource | string 包含 {z}、{x} 和 {y} 占位符的 URL 模板。
options object optional 提供器选项。
Returns:

protected _configureTileset(_tileset)

Name Type Description
_tileset Cesium3DTileset

protected _createCodec() → object

子类必须返回一个运行时内容编解码器,描述如何将 下载的瓦片数据转换为 Cesium3DTileContent。有关预期格式,请参见 Cesium3DTileset#_runtimeContentCodec。
Returns:

protected _createRuntimeTilesetOptions()

protected _createTilesetLoadOptions() → object

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