OSM Example not Working

337
1
Jump to solution
12-12-2022 02:52 AM
FlorianKowalsky
New Contributor III

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

0 Kudos
1 Solution

Accepted Solutions
FlorianKowalsky
New Contributor III

Problem solved -> Proxy not working

View solution in original post

0 Kudos
1 Reply
FlorianKowalsky
New Contributor III

Problem solved -> Proxy not working

0 Kudos