import BuildingExplorerViewModel from "@arcgis/core/widgets/BuildingExplorer/BuildingExplorerViewModel.js";const BuildingExplorerViewModel = await $arcgis.import("@arcgis/core/widgets/BuildingExplorer/BuildingExplorerViewModel.js");- Inheritance:
- BuildingExplorerViewModel→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.16
Provides the logic for the BuildingExplorer widget.
- See also
BuildingExplorer widget - Deprecated since 5.0. Use the Building Explorer component instead.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
declaredClass readonly inherited | ||
| | ||
level readonly | | |
phase readonly | | |
state readonly | "disabled" | "loading" | "ready" | "failed" | |
| |
layers
- Type
- Collection<BuildingSceneLayer>
A Collection of layers of type BuildingSceneLayer that are added to the widget for exploration. The widget is only displayed when this property is set. In case of multiple layers, the widget will display and apply the filters on all layers.
level
- Type
- BuildingLevel
Contains information about the level filter, such as the value selected by the user in the Level element or the minimum and maximum allowed values.
phase
- Type
- BuildingPhase
Contains information about the construction phase filter, such as the value selected by the user in the Construction phases element and the minimum and maximum allowed values.
state
- Type
- "disabled" | "loading" | "ready" | "failed"
The current state of the view model that can be used for rendering the UI of the widget.
| Value | Description |
|---|---|
| disabled | widget is being created |
| loading | layers and statistics are loading |
| ready | widget is ready |
| failed | widget failed to load data |
- Default value
- "disabled"