A layer that can visualize feature data.
public class FeatureLayer : Layer, INotifyPropertyChanged, ILoadable, ILayerContent, IPopupSource, ITimeAware, IFloorAware
Feature layers can display Feature data from a range of online feature table sources, such as ServiceFeatureTable, WfsFeatureTable, or OgcFeatureCollectionTable, and offline sources such as GeodatabaseFeatureTable, ShapefileFeatureTable, or GeoPackageFeatureTable. You can construct a feature layer object using these feature table sources or you can obtain it directly from a map or scene's collection of OperationalLayers.
Feature layers can be used to display, select, and query features in a layer. Individual features can be queried and filtered based on spatial queries or SQL queries. String comparisons for features queried in service feature tables are case insensitive.
If the underlying feature service or table supports editing, you can use it with a feature layer as a basis for editing geometry, attributes, and attachments.
The features in a feature layer are retrieved as needed by the app. Features can be downloaded from a sync-enabled feature service when the device is connected and cached locally for use when the device is offline. Edits can then be synchronized back to the service.
The following are sources that can be rendered using a feature layer.
Feature service - Backed by a ServiceFeatureTable; feature data from the service is cached locally in the table. New features are retrieved automatically when you navigate the map. The local table cache is discarded when the layer is disposed. If sync is enabled, features can be created, edited, and synchronized back to the server.
Geodatabase — Backed by a GeodatabaseFeatureTable; The geodatabase can be a replica of a feature service, which allows synchronizing with a feature service, or taking the content of a feature service offline. Use a RuntimeCoreNet.GeneratedWrappers.CoreGeodatabaseSyncTask to synchronize the geodatabase with the service. The geodatabase can also be a mobile geodatabase created by ArcGIS Pro. These geodatabases cannot be synced and use a default renderer.
Shapefile — Backed by a ShapefileFeatureTable; use a feature layer to show the contents of a shapefile (.shp).
Geopackage — Backed by a GeoPackageFeatureTable; use a feature layer to render the tables in a GeoPackage (.gpkg). A GeoPackage is a data source that conforms to the OGC GeoPackage specification. Geopackage feature tables can be edited and saved, but do not support sync, because there is no backing feature service. This API supports GeoPackage versions 1.0, 1.1, and 1.2.
Web Feature Service (WFS) — Backed by a WfsFeatureTable. You can populate the table using QueryParameters or raw XML-encoded GetFeature queries. A WFS feature table only supports manual cache feature request mode. This API supports OGC WFS versions 2.0.0 and 2.0.2. WFS server implementations are inconsistent in how they expect coordinates to be formatted. Some return and expect coordinates in (x, y) order, while others expect (y, x). This API anticipates the order but you can configure it with the AxisOrder and FilterAxisOrder.
OGC API Features - Backed by an OgcFeatureCollectionTable. You can populate the table using Runtime query parameters. An OCG feature collection table only supports manual cache feature request mode. Runtime supports OGC API - Features - Part 1 and OGC API - Features - Part 2.
FeatureLayer does not expose every value defined in the web map or web scene specification. You can obtain a dictionary of unsupported values from UnsupportedJson. The FeatureLayer also provides UnknownJson to return JSON that is not recognized in the web map or web scene specification.
The feature layer offers excellent display performance when zooming and panning the map within the extent of locally cached features. This is because features are drawn natively and full feature information is cached locally in a geodatabase, shapefile, or GeoPackage. Querying features is also efficient, enabling app functions such as real-time updates of query results in a map.
Initially, a local cache must be created. The initial download to the device may require extensive network usage and subsequent local device storage. App memory usage increases with the number and complexity of the features cached. You can eliminate the network usage by provisioning the cache directly to the device in advance
- On interaction cache — Features are requested automatically for the visible map or scene extent. As the user pans and zooms, features are cached locally. If the user returns to an area where features have already been loaded, the table won't need to download those features again.
- Manual cache — Features are manually populated using a call to the PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>) method. Once populated, all queries are made against the local table only. This method can be called again to retrieve more features from the service.
- On interaction, no cache—Features are requested automatically for the visible map extent. As the user pans and zooms, features outside the visible extent are not cached and must be downloaded again each time.
Initializes a new instance of the FeatureLayer class from a feature layer or feature service portal item.
Gets or sets a SQL expression which limits the features available for query and display on the feature layer.
Gets or sets the value that defines how features are filtered from the display.
Gets or sets the properties for dynamically aggregating and summarizing groups of features as the map scale changes.
Gets or sets the FeatureTable whose features are drawn on the map by this layer.
Gets or sets the properties that allow a feature layer to be floor-aware.
Gets the temporal window that encapsulates the instance's complete set of data
Gets or sets a value indicating whether the PopupDefinition defined is enabled.
Gets or sets a value indicating whether the instance respects any temporal filters that are applied to it.
Gets a modifiable collection of LabelDefinition objects that define how labels are displayed.
Gets or sets a value indicating whether labels should be displayed.
Gets or sets the pop-up definition for the FeatureLayer.
Gets or sets the refresh interval on a FeatureLayer.
Gets or sets the renderer that specifies how the features are symbolized.
Gets or sets a value indicating how the feature layer is rendered.
Gets or sets a value indicating whether the layer's symbols and labels honor the Map reference scale.
Gets or sets the scene properties that are applied when the layer is rendered in a 3D scene using a scene view object.
Gets a value indicating whether the instance supports filtering its data based on time.
Gets or sets the mode defines whether feature tiling is used to retrieve the features from the feature service.
Gets a temporal value that represents the suggested temporal interval to use when sequentially stepping through the instance's data by time
Gets or sets the amount of time by which to offset the temporal values of data points in this instance when displaying the data in a GeoView.
Gets unknown data from the source JSON.
Gets unsupported data from the source JSON.
Clears all selected features.
Returns a list of the currently selected features.
Resets the visibility of all features back to their original state.
Resets the renderer back to the original renderer provided by the FeatureTable.
Selects the given feature and adds it to the current list of selected features.
Selects the features in the list and adds them to the current list of selected features.
|SelectFeaturesAsync(QueryParameters, SelectionMode, CancellationToken)|
Sets the visibility of the given features.
Sets the visibility of the given feature.
Unselects the given feature and removes it from the current list of selected features.
Unselects the given features and removes them from the current list of selected features.
Raised when the FullTimeExtent of the instance's data changes
|.NET Standard 2.0||100.3 - 200.3|
|.NET||100.13 - 200.3|
|.NET Windows||100.13 - 200.3|
|.NET Android||200.0 - 200.3|
|.NET iOS||200.0 - 200.3|
|.NET Framework||100.0 - 200.3|
|Xamarin.Android||100.0 - 100.15|
|Xamarin.iOS||100.0 - 100.15|
|UWP||100.0 - 200.3|