AnsweredAssumed Answered

Viewing map problem in wpf

Question asked by tsozgen on Feb 6, 2015
Latest reply on Feb 6, 2015 by tsozgen

Hi There;

I try to implement the solution described in Arcgis runtime sdk for .net. I try to implement ArcGISDynamicMapServiceLayer in the code examples. Here is the xaml code:

 

<Window x:Class="ArcGISDynamicMapServiceLayer.MainWindow"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"
   Height="600" Width="800">
   <Grid>

   <!-- Add a MapView Control to the application. -->
   <esri:MapView>
   <!-- Add a Map. -->
   <esri:Map>
   <!-- Add an ArcGISDynamicMapServiceLayer via XAML. -->
   <esri:ArcGISDynamicMapServiceLayer ID="World Time Zones" 
   ServiceUri="http://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer"/>
   </esri:Map>
   </esri:MapView>
   </Grid>

</Window>

 

Whenever I run this code in my machine, a window appears; however there is no map at all. What is the problem and how can I solve it?

 

Thanks in advance.

Outcomes