Class Layer
A base class for classes that represent layers.
Inheritance
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public abstract class Layer : INotifyPropertyChanged, ILoadable, ILayerContent
Remarks
A layer, also known as an operational layer, provides access to geographic data that is displayed in a map or
scene. Each layer references a file or service data source that contains either vector data (points, lines,
polygons and attributes) or raster data (images). The Map or Scene can display
these layers inside a Map
Layer is the base class for all these layer types:
Layer type | 2D/3D | Time-aware | Online/offline | Sources |
---|---|---|---|---|
Annotation |
2D | No | Both | ArcGIS feature service, portal item, mobile map package (.mmpk) |
Arc |
Both | Yes | Online | ArcGIS map service |
Arc |
3D | No | Both | Scene service or scene package |
Arc |
Both | No | Both | ArcGIS tile service, tile package (.tpk/.tpkx) |
Arc |
Both | No | Both | ArcGIS vector tile service, vector tile package (.vtpk) |
Bing |
Both | No | Online | Bing maps |
Dimension |
2D | No | Both | ArcGIS feature service; geodatabase feature table |
Dynamic |
Both | No | Online | ArcGIS stream service |
Enc |
2D | No | Offline | ENC exchange set, ENC cell |
Feature |
Both | No | Both | Portal item, web map, feature set / query result |
Feature |
Both | Yes | Both | ArcGIS feature service, WFS, shapefile, GeoPackage, geodatabase, OGC API Features |
Group |
Both | No | Both | Other layers and group layers |
Kml |
Both | Yes | Both | KML file (.kml, .kmz) |
Integrated |
3D | No | Both | Scene layer package (.slpk) |
Mobile |
2D | No | Offline | Mobile map package (.mmpk) |
Ogc3DTiles |
3D | No | Both | Portal item, tileset, tile package(.3tz) |
Open |
Both | No | Online | OpenStreetMap.org |
Point |
3D | No | Both | Portal item, scene layer package (.slpk) |
Raster |
Both | Yes | Both | GeoPackage, raster file, ArcGIS Image service |
Subtype |
2D | No | Both | ArcGIS feature service, geodatabase |
Web |
Both | No | Online | Web tile service |
Wms |
Both | Yes | Online | WMS service |
Wmts |
Both | No | Online | WMTS service |
Properties
Name | Description |
---|---|
Attribution | Gets the attribution text for the layer. |
Can |
Gets a value indicating whether the layer content's visibility can be changed. |
Description | Gets the description for the layer. |
Full |
Gets the full extent of the layer, which is the extent where all the data in the layer is contained. |
Id | Gets or sets the unique identifying string for the layer, for example specified in a map or scene. |
Is |
Gets a value indicating whether the layer supports the identify operation. |
Is |
Gets or sets a value indicating whether the layer content is visible. |
Item | Gets the ArcGIS Item |
Load |
Gets the load error of the layer, if there is one. |
Load |
Gets the load status of the layer. |
Max |
Gets or sets the maximum scale where the layer is visible. |
Min |
Gets or sets the minimum scale where the layer is visible. |
Name | Gets or sets the name of the layer content. |
Opacity | Gets or sets the opacity of the layer. |
Show |
Gets or sets a value indicating whether the layer content participates in the legend. |
Spatial |
Gets the spatial reference of the layer. |
Sublayer |
Gets the sub layer contents of a layer content. |
Methods
Name | Description |
---|---|
Cancel |
Cancels an ongoing load. |
Clone() | Clones this instance of Layer and its members. |
Get |
Returns an immutable list of Legend |
Is |
Returns the layer content's effective visibility at the specified scale. |
Load |
Initiates loading of a layer |
On |
Called when a property changes. |
Retry |
Retry loading the layer. |
Events
Name | Description |
---|---|
Loaded | Occurs when the layer is loaded. |
Load |
Occurs when the layer LoadStatus is changed. |
Property |
Occurs when a property value changes. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |