Skip to content
import BuildingSublayer from "@arcgis/core/layers/buildingSublayers/BuildingSublayer.js";
Inheritance:
BuildingSublayerAccessor
Subclasses:
BuildingComponentSublayer, BuildingGroupSublayer
Since
ArcGIS Maps SDK for JavaScript 4.10

BuildingSublayer is the base class for sublayers of a BuildingSceneLayer. It can be either a BuildingGroupSublayer which contains nested BuildingSublayers or a BuildingComponentSublayer, which is a layer similar to a 3DObject SceneLayer for one component of the building.

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
id
readonly
isEmpty
readonly
modelName
readonly
uid
readonly inherited

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

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

id

readonly Property
Type
number

The sublayer's layer id as defined by the Scene Service.

Default value
-1

isEmpty

readonly Property
Type
boolean | null | undefined

Indicates if this sublayer is empty. This property is only read from the service. Empty sublayers are not loaded for rendering and applications can choose to hide them in their UI.

modelName

readonly Property
Type
string | null | undefined

The modelName is a standard name for each sublayer. For example the sublayer containing the doors in a building has the modelName "Doors". Use this property to retrieve sublayers in a BuildingSceneLayer.

Example
// use modelName to identify a sublayer
const doorslayer = buildingSceneLayer.allSublayers.find(function(sublayer) {
return sublayer.modelName === "Doors";
});

opacity

Property
Type
number

Opacity of the sublayer.

Default value
1

title

Property
Type
string | null | undefined

The title of the sublayer used to identify it in places such as the LayerList and Legend.

Default value
""

uid

readonlyinherited Property
Type
string
Inherited from: IdentifiableMixin
Since
ArcGIS Maps SDK for JavaScript 4.33

An automatically generated unique identifier assigned to the instance. The unique id is generated each time the application is loaded.

visible

Property
Type
boolean

Indicates if the sublayer is visible in the view.

Default value
true