Skip to content
import BuildingExplorerViewModel from "@arcgis/core/widgets/BuildingExplorer/BuildingExplorerViewModel.js";
Inheritance:
BuildingExplorerViewModelAccessor
Since
ArcGIS Maps SDK for JavaScript 4.16

Provides the logic for the BuildingExplorer widget.

See also

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.
PropertyTypeClass
declaredClass
readonly inherited
level
readonly
phase
readonly
state
readonly
"disabled" | "loading" | "ready" | "failed"

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

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

layers

autocast Property
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

readonly Property
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

readonly Property
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

readonly Property
Type
"disabled" | "loading" | "ready" | "failed"

The current state of the view model that can be used for rendering the UI of the widget.

ValueDescription
disabledwidget is being created
loadinglayers and statistics are loading
readywidget is ready
failedwidget failed to load data
Default value
"disabled"

view

Property
Type
SceneView | null | undefined

The view in which the BuildingExplorer is used.