ArcGIS Runtime SDK for .NET Samples

Create a feature collection layer from a portal item

FeatureCollectionLayer from a portal item
Loading

Code

<UserControl x:Class="ArcGISRuntime.UWP.Samples.FeatureCollectionLayerFromPortal.FeatureCollectionLayerFromPortal"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls">
    <Grid>
        <esriUI:MapView x:Name="MyMapView" />
        <Border BorderBrush="Black" BorderThickness="1" Background="White"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="30" Padding="20" Width="375">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBlock Text="Item ID:"
                           Grid.Row="0" Grid.Column="0"
                           FontWeight="SemiBold"
                           VerticalAlignment="Center" />
                <TextBox x:Name="CollectionItemIdTextBox"
                         Grid.Row="0" Grid.Column="1"
                         Margin="5,0,0,0"
                         HorizontalAlignment="Stretch" />
                <Button Content="Open from portal item"
                        Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
                        Margin="0,5,0,0"
                        HorizontalAlignment="Stretch"
                        Click="Open_Click" />
            </Grid>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code