Map tiles not loading creating a new map

2269
10
Jump to solution
07-08-2021 10:04 AM
Gr0bert0
New Contributor

I have a .Net Core application that attempts to show a map in a dialog at a particular viewport. It seems to occasionally encounter the following errors resulting in areas of the map not rendering.

Exception thrown: 'System.IO.IOException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Net.Http.dll

Bizarrely the same code in the .Net Framework version works without issue.

I've created a couple of test projects that illustrate the problem. It simply creates and displays a map in the window when a button is clicked. The code looks like:

public partial class MapView : UserControl{
public MapView()
{
InitializeComponent();

var map = new Map(Basemap.CreateStreetsVector());

MapPoint mapPoint = new MapPoint(-4.27873, 53, SpatialReferences.Wgs84);
Viewpoint vp = new Viewpoint(mapPoint, 3000);
map.InitialViewpoint = vp;

Map.Map = map;
}
}

I'm using version 100.11.2 and it also fails on 100.10.

Any help would be appreciated. Thanks

0 Kudos
10 Replies
Gr0bert0
New Contributor

@MichaelBranscomb 

Hi

We have updated to v100.12 and can confirm that the tiles are now loading as expected.

Thanks again for your help

0 Kudos