import ModelFileInfo from "@arcgis/core/layers/scene/ModelFileInfo.js";const ModelFileInfo = await $arcgis.import("@arcgis/core/layers/scene/ModelFileInfo.js");- Inheritance
- ModelFileInfo→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Metadata about a file that belongs to a model associated with a 3D object feature.
Properties
Any properties can be set, retrieved or listened to. See the Watch for changes topic.
name
readonly Property
- Type
- string
Path of the file within the model. Note that the path may include directory information.
- Default value
- ""
Methods
| Method | Signature | Class |
|---|---|---|
| arrayBuffer(options?: AbortOptions): Promise<ArrayBuffer> | |
arrayBuffer
Method
- Signature
-
arrayBuffer (options?: AbortOptions): Promise<ArrayBuffer>
Downloads the file as an array buffer.
Call this method when you need the actual file content. The SceneLayer.queryModel() and SceneLayer.queryModels() methods return file metadata first, so you can inspect names and sizes before downloading any bytes.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| options | Optional request options. | |
- Returns
- Promise<ArrayBuffer>
Resolves to an array buffer containing the file content.