Feature layer (shapefile)

This sample demonstrates how to open a shapefile stored on the device and display it as a feature layer with default symbology.

Feature layer from a shapefile dataset

Instructions

The shapefile will be downloaded from an ArcGIS Online portal automatically.

Code

<UserControl 
    x:Class="ArcGISRuntime.WPF.Samples.FeatureLayerShapefile.FeatureLayerShapefile"
    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">
    <esri:MapView x:Name="MyMapView" />
</UserControl>


In this topic
  1. Instructions
  2. Code