Hello
I'm trying to run the OpenStreetmap example: https://developers.arcgis.com/net/wpf/sample-code/openstreetmap-layer/
But there is no Map visible
Xaml:
<Grid>
<Grid>
<esri:MapView x:Name="MyMapView" />
</Grid>
</Grid>
Code Behind:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
Initialize();
}
private async void Initialize()
{
// Create the OpenStreetMap basemap.
Basemap osmBasemap = new Basemap(BasemapStyle.OSMStandard);
// Create the map with the OpenStreetMap basemap.
Map osmMap = new Map(osmBasemap);
// Show the map in the view.
MyMapView.Map = osmMap;
}
}
Where's the problem?
Using SDK 100.15