ArcGIS Runtime SDK for .NET Samples

Create a feature collection layer from a portal item

FeatureCollectionLayer from a portal item
Loading

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"
             x:Class="ArcGISRuntime.Samples.FeatureCollectionLayerFromPortal.FeatureCollectionLayerFromPortal">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        <esriUI:MapView x:Name="MyMapView"
                        Grid.Row="0"/>
        <Entry x:Name="CollectionItemIdTextBox"
               Placeholder="Portal item Id"
               Grid.Row="1"
               HorizontalOptions="Fill"/>
        <Button Grid.Row="2"
                HorizontalOptions="Fill"
                Text="Open feature collection item"
                Clicked="OpenPortalFeatureCollectionClick"/>
    </Grid>
</ContentPage>


In this topic
  1. Code