Show features from an online feature service.
Use case
Feature services are useful for sharing vector GIS data with clients so that individual features can be queried, displayed, and edited.
How to use the sample
Run the sample and view the feature service as an operational layer on top of the basemap. Zoom and pan around the map to see the features in greater detail.
How it works
- Create a
ServiceFeatureTable
from a URL. - Create a feature layer from the service feature table.
- Add the feature layer to your ArcGISMap using
Map.OperationalLayers.Add(FeatureLayer)
.
Relevant API
- Basemap
- FeatureLayer
- Map
- MapView
- ServiceFeatureTable
Tags
feature table, layer, layers, service
Sample Code
<UserControl x:Class="ArcGISRuntime.WPF.Samples.FeatureLayerUrl.FeatureLayerUrl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
<Grid>
<esri:MapView x:Name="MyMapView" />
</Grid>
</UserControl>