▾
import LayerItem from "@arcgis/core/widgets/support/SelectionList/LayerItem.js";const LayerItem = await $arcgis.import("@arcgis/core/widgets/support/SelectionList/LayerItem.js");- Since
- ArcGIS Maps SDK for JavaScript 5.2
An item representing a layer with selected features in the selection list. It is used by the selection list to group the layer's FeatureItem instances and manage their selection state.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | Initial layer item properties. | |
Properties
effectiveObjectIds
- Type
- ObjectId[]
Set of Object IDs for selected features. This includes filtered features.
effectiveSelection
- Type
- SelectionIdentifier[]
The effective selection for this layer item, which is a subset of the full selection based on the value of maxVisibleFeatureCountPerLayer.
expanded
- Type
- boolean
Indicates whether the item is expanded in the selection list.
- Default value
- true
featureItems
- Type
- FeatureItem[]
Set of items representing individual selected features. This will only contain a maximum number of features based on the value of maxVisibleFeatureCountPerLayer.
groupLayerItem
- Type
- GroupLayerItem | null | undefined
A reference to the parent group layer item, if one exists.
iconName
- Type
- Icon["icon"]
Icon used to represent the item.
layerView
- Type
- SelectableLayerView | null | undefined
Companion layer view of the associated layer.
maxVisibleFeatureCountExceeded
- Type
- boolean
Indicates whether the maximum number of visible feature items has been exceeded. This is based on the value of maxVisibleFeatureCountPerLayer and the current selection.
maxVisibleFeatureCountPerLayer
- Type
- number
Maximum number of selected features visible for each layer item. This does not prevent selection or affect bulk actions on the selection set.
objectIds
- Type
- ObjectId[]
Array of selected features represented by their object IDs.
total
- Type
- number
Count representing the number of selected features. This value includes features hidden by local filters, but are still selected according to the associated selection manager.
view
- Type
- SelectableViewUnion | null | undefined
Convenience property for the view associated with the view model.
visible
- Type
- boolean
Indicates whether this item is visible in the list, due to one or more child items being visible.
visibleTotal
- Type
- number
Total number of visible features accounting for any filters and maxVisibleFeatureCountPerLayer.