No map is shown for ESRI demo application

548
1
Jump to solution
11-13-2020 05:03 AM
IvanVedeneev
New Contributor

I downloaded ArcGIS SDK and created a first application based on this article:

https://developers.arcgis.com/net/latest/wpf/guide/develop-your-first-map-app.htm

However no map is shown, the window is blank, I can see only the label "Powered by ESRI" at the right bottom.

What can be wrong?

0 Kudos
1 Solution

Accepted Solutions
dotMorten_esri
Esri Notable Contributor

Sounds like the map wasn't able to load the layer. I assume you're connected to the internet?
You could try explicitly loading the first layer in the basemap and observe any load errors.

try
{
  await Map.Basemap.Baselayers[0].LoadAsync();
}
catch(System.Exception ex)
{
   // Inspect the error here
}

 

Where 'Map' is the map you assigned to the MapView's Map property.

View solution in original post

0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor

Sounds like the map wasn't able to load the layer. I assume you're connected to the internet?
You could try explicitly loading the first layer in the basemap and observe any load errors.

try
{
  await Map.Basemap.Baselayers[0].LoadAsync();
}
catch(System.Exception ex)
{
   // Inspect the error here
}

 

Where 'Map' is the map you assigned to the MapView's Map property.

0 Kudos