Feature layers don't display on the map (WPF Application)

6464
21
10-16-2014 03:05 AM
deleted-user-i8mW0s-ySag1
New Contributor

With the release of ArcGIS Runtime SDK 10.2.4, I've read the developer's guide and tried to do the various tutorials.

But I have a problem with the part "Add a feature layer to provide operational data" (https://developers.arcgis.com/net/desktop/guide/access-feature-data-in-the-cloud.htm).

When I add a feature layer on the base map, it doesn't display at all, no matter how I try (by XAML or by code). I even used the layer.InitializationException to check if it was correctly loaded. All I can see is the basemap without the swimming pool permits layer.

For your informations, I'm working with Visual Studio 2013 Express Edition.

Can you please help me to find what I'm doing wrong?

Thanks in advance for your answers.

Here's the code I use for my basic project (WPF Application in Visual Basic):

<Window x:Class="MainWindow"
    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"
    Title="MainWindow" Height="536.596" Width="888.705">
    <Grid>
        <esri:MapView x:Name="MyMapView">
            <esri:Map x:Name="MyMap">
                <esri:ArcGISTiledMapServiceLayer ID="BaseMap"
                    ServiceUri="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
                <esri:FeatureLayer ID="PoolPermits">
                    <esri:FeatureLayer.FeatureTable>
                        <esri:ServiceFeatureTable
                           ServiceUri="http://sampleserver6.arcgisonline.com/arcgis/rest/services/PoolPermits/FeatureServer/0"/>
                    </esri:FeatureLayer.FeatureTable>
                </esri:FeatureLayer>
                <esri:Map.InitialViewpoint>
                    <esri:ViewpointExtent XMin="-13075816.40"
                   YMin="4014771.46"
                   XMax="-13073005.67"
                   YMax="4016869.78"/>
                </esri:Map.InitialViewpoint>
            </esri:Map>
        </esri:MapView>
    </Grid>
</Window>

Grégoire

0 Kudos
21 Replies
JohnWoon
New Contributor

To detect the problem source, I have created a  simple application. It runs fine at other pcs but my laptop.

I tried the query urls at IE and could receive correct results.

No initialization errors found.

At first I was using windows 10 preview os, and I thought it was the problem. So I re install windows 8.1 but still not displaying any feature.

0 Kudos
AnttiKajanus1
Occasional Contributor III

Can you send the sample to me to akajanus <a> esri.com. I would like to test the same solution.

0 Kudos