import ModelInfo from "@arcgis/core/layers/scene/ModelInfo.js";const ModelInfo = await $arcgis.import("@arcgis/core/layers/scene/ModelInfo.js");- Inheritance
- ModelInfo→
Accessor
- 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
files
- 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
- 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
- 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
- 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
- Type
- number
Combined size of all files in the model, in bytes.
- Default value
- 0