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="ArcGIS.UWP.Samples.FeatureLayerUrl.FeatureLayerUrl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:esri="using:Esri.ArcGISRuntime"
xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<esriUI:MapView x:Name="MyMapView"/>
</Grid>
</UserControl>