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