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

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"             
             xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms"
             xmlns:mapping="clr-namespace:Esri.ArcGISRuntime.Mapping;assembly=Esri.ArcGISRuntime" 
             x:Class="ArcGISRuntimeXamarin.Samples.FeatureLayerShapefile.FeatureLayerShapefile">
    <esriUI:MapView x:Name="MyMapView"/>
</ContentPage>


In this topic
  1. Instructions
  2. Code