import ModelInfo from "@arcgis/core/layers/scene/ModelInfo.js";
Inheritance
ModelInfoAccessor
Since
ArcGIS Maps SDK for JavaScript 5.1

Metadata about a source or derived model associated with a 3D object feature.

Use this class to inspect model names, formats, sizes, and files before downloading file content.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.
PropertyTypeClass
readonly inherited
readonly
readonly
readonly
readonly
readonly

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

The name of the class. The declared class name is formatted as esri.folder.className.

files

readonly Property
Type
ModelFileInfo[]

Files that make up this model. A model can consist of multiple files, such as a glTF entry file and texture files.

format

readonly Property
Type
string

Format of the model. For a given feature, the source model can use a different format than derived models returned for the same feature. Known possible formats include dae, dwg, fbx, glb, glt, ifc, obj, shapebuffer, shapebufferg, usd, usda, usdc and usdz. Supported request formats are listed in capabilities.data.queryFormats on the layer's capabilities.

Default value
""

isSource

readonly Property
Type
boolean

Indicates whether this model is the source model of the feature for which it was queried rather than a derived representation.

Default value
false

name

readonly Property
Type
string

Entry point file name of the model. For example, if the model is a glTF with a number of texture files, then the model name will be the file name of the .gltf file in the files array. Source and derived models of the same feature can have different names.

Default value
""

size

readonly Property
Type
number

Combined size of all files in the model, in bytes.

Default value
0