Class LayerCollection
A collection of layers
Implements
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class LayerCollection : RuntimeObservableCollection<Layer>, IList<Layer>, ICollection<Layer>, IList, ICollection, IReadOnlyList<Layer>, IReadOnlyCollection<Layer>, IEnumerable<Layer>, IEnumerable, INotifyPropertyChanged, INotifyCollectionChanged
Constructors
| Name | Description |
|---|---|
| LayerCollection() | Initializes a new instance of the LayerCollection class. |
Properties
| Name | Description |
|---|---|
| this[string] | Gets a layer in the collection by its Id. |
Methods
| Name | Description |
|---|---|
| ClearItems() | Called by base class Collection<T> when the list is being cleared; raises a CollectionChanged event to any listeners. |
| RemoveItem(int) | Called by base class Collection<T> when an item is removed from list; raises a CollectionChanged event to any listeners. |
Applies to
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
Relevant samples
Add an integrated mesh layer: View an integrated mesh layer from a scene service.
Add ENC exchange set: Display nautical charts per the ENC specification.
Create, delete, and update features: Add, delete, and update features (geometry and attributes) in a feature layer.
Analyze hotspots: Use a geoprocessing service and a set of features to identify statistically significant hot spots and cold spots.