import BuildingSublayer from "@arcgis/core/layers/buildingSublayers/BuildingSublayer.js";const BuildingSublayer = await $arcgis.import("@arcgis/core/layers/buildingSublayers/BuildingSublayer.js");- Inheritance:
- BuildingSublayer→
Accessor
- 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.
Constructors
Constructor
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| 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.
id
readonly Property
- Type
- number
The sublayer's layer id as defined by the Scene Service.
- Default value
- -1
modelName
readonly Property
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 sublayerconst doorslayer = buildingSceneLayer.allSublayers.find(function(sublayer) { return sublayer.modelName === "Doors";}); 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.