import LayerListVisibleElements from "@arcgis/core/widgets/LayerList/LayerListVisibleElements.js";const LayerListVisibleElements = await $arcgis.import("@arcgis/core/widgets/LayerList/LayerListVisibleElements.js");- Inheritance:
- LayerListVisibleElements→
Accessor
The visible elements that are displayed within the layer list. This provides the ability to turn on/off individual elements of the layer list.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
| | ||
| | ||
| | ||
declaredClass readonly inherited | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| |
catalogLayerList
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether to display the LayerList.catalogLayerList.
- Default value
- true
closeButton
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether to display a close button in the header.
- Default value
- false
collapseButton
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether to display a collapse button in the header.
- Default value
- false
errors
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether to display layers with load errors.
- Default value
- false
filter
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether to display a filter input box when then number of list items is equal to or greater than the value set in LayerList.minFilterItems, allowing users to filter layers by their title.
- Default value
- false
flow
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether the layer list should be shown within its built-in flow component or if the flow component should be excluded. The layer list will be displayed within its original flow component if set to true. The flow component will be omitted from the layer list if set to false. To place the layer list into an existing Calcite flow component, set this property to false.
- Default value
- true
heading
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether to display the layer list heading. The heading text is "Layer List". The heading level can be set with the LayerList.headingLevel.
- Default value
- false
statusIndicators
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether the status indicators will be displayed.
- Default value
- true
temporaryLayerIndicators
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether temporary layer indicators will be displayed for layers with Layer.persistenceEnabled set to false. A temporary icon will be displayed on the near side of the layer title.
- Default value
- false