AnsweredAssumed Answered

Tutorial HelloWorldApp MapView does not Load

Question asked by rlcox0 on Feb 25, 2016
Latest reply on Feb 27, 2016 by mnielsen-esristaff

Hi All,

 

Sorry, I'm new to the ESRI desktop WPF SDK.  I'm just trying to run the 1st tutorial.

When I run the application, the map does not load in the map view window (see below).

I have been trying other samples, and mapview still wont load.  I tried hitting the URI directly and that works:

World_Street_Map (MapServer)

 

Is there something simple that I'm missing or any suggestions for troubleshooting?

 

Thank you for your help.

 

Windows 7

Visual Studio 2015

 

 

 


Image.png

 

 

<Window x:Class="HelloWorldMap3.MainWindow"

xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation

xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml

xmlns:d=http://schemas.microsoft.com/expression/blend/2008

xmlns:esri=http://schemas.esri.com/arcgis/runtime/2013

xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006

xmlns:local="clr-namespace:HelloWorldMap3"

mc:Ignorable="d"

Title="MainWindow" Height="350" Width="525">

     <Grid>

          <esri:MapView>

               <esri:Map x:Name="MyMap">

               <esri:ArcGISTiledMapServiceLayer ID="BaseLayer"

 

                     ServiceUri="http://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer"/>

               </esri:Map>

          </esri:MapView>

     </Grid>

 

</Window>

 

 

 

 

Outcomes