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
Tested with VB.NET and Express edition of VS. Also tried with "fr-CH" but cannot find any issues.
Can you zip your project and send it directly to me (see email from profile)?
Sorry, but I cannot find your email under your profile, nor in your vcard.
But you can access my project here:
oh, need to check that.
Tried your zip and it works for me. You were using Win7?
It worked? Very strange. Yes I'm on Win7 with the SDK 10.2.4. I'll try on another desktop this afternoon and write you back.
Thanks for your tests.
I've done a fresh install of Visual Studio 2013 Express with the ArcGIS Runtime 10.2.4 on another Win7 platform and It worked!
The only "major" difference between the two is that I had the Runtime 10.2.3 Beta on my Desktop before. Could it be a part of the problem?
Good to hear that you have managed to solve that issue. It shouldn't affect but it's good practice to remove all references to Beta SDK before installing RTM.
Does Spatial References match with MapView and FeatureLayer?
For the ESRI example, I suppose (that's the goal of a tutorial). Regarding my local datas, the 2 layers are in the same coordinate system, yes.
I have run into the same issue, it quite weird.
Still don't know how to fix it.
wpf application, Windows 8.1, visual studio 2013 ultimate, arcgis runtime sdk 10.2.4 (or 10.2.5)
feature layer not displaying.
Does the query towards the service return correct features? Is there any initialization errors on FeatureLayer / ServiceFeatureTable? Is there any errors in ServiceFeatureTable's Updated event?