English中文

MetadataSchema

new Cesium.MetadataSchema(options)

包含类和枚举的模式。 A schema containing classes and enums.

请参阅 See the 3D Metadata Specification 对于 3D Tiles for 3D Tiles

名称 Name 类型 Type 说明 Description
options object 具有以下属性的对象: Object with the following properties:
名称 Name 类型 Type 说明 Description
id string 可选 optional 架构的 ID The ID of the schema
name string 可选 optional 架构的名称。 The name of the schema.
description string 可选 optional 架构的描述。 The description of the schema.
version string 可选 optional 架构的特定于应用程序的版本。 The application-specific version of the schema.
classes Object.<string, MetadataClass> 可选 optional 架构中定义的类,其中每个键都是类 ID。 Classes defined in the schema, where each key is the class ID.
enums Object.<string, MetadataEnum> 可选 optional 架构中定义的枚举,其中每个键都是枚举 ID。 Enums defined in the schema, where each key is the enum ID.
extras * 可选 optional 额外的用户定义属性。 Extra user-defined properties.
extensions object 可选 optional 包含扩展的对象。 An object containing extensions.
实验性 Experimental

此功能使用的是 3D Tiles 规范的一部分,该规范不是最终版本,并且可能会在没有 Cesium 的标准弃用政策的情况下进行更改。 This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.

成员 Members

readonly classes : Object.<string, MetadataClass>

架构中定义的类。 Classes defined in the schema.

readonly description : string

架构的描述。 The description of the schema.

readonly enums : Object.<string, MetadataEnum>

架构中定义的枚举。 Enums defined in the schema.

readonly extensions : object

包含扩展的对象。 An object containing extensions.
额外的用户定义属性。 Extra user-defined properties.
架构的 ID。 The ID of the schema.
架构的名称。 The name of the schema.

readonly version : string

架构的特定于应用程序的版本。 The application-specific version of the schema.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.