Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
825
Moving xamWebMap from localhost to a development server
posted

When I move the following code from my localhost, where it works perfectly, to our development server,  the map does not load into the map control. I see the control on the page but no map. What am I not doing?

<UserControl
    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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" xmlns:igMap="clr-namespace:Infragistics.Silverlight.Map;assembly=Infragistics.Silverlight.DataVisualization.Map.v9.2" x:Class="SilverlightApplication2.MainPage"
    Width="900" Height="600">
 <Grid x:Name="LayoutRoot" Background="White">

  <Grid.ColumnDefinitions>
   <ColumnDefinition Width="0.323*"/>
   <ColumnDefinition Width="0.677*"/>
  </Grid.ColumnDefinitions>
  <igMap:XamWebMap x:Name="District" Height="200" Margin="8,0,8,19" VerticalAlignment="Bottom" Width="200" MapProjectionType="Equirectangular">
   <igMap:XamWebMap.Projection>
    <PlaneProjection RotationX="-70" RotationY="20"/>
   </igMap:XamWebMap.Projection>
   <igMap:XamWebMap.Layers>
    <igMap:MapLayer x:Name="schooldistricts">
     <igMap:MapLayer.Reader>
      <igMap:ShapeFileReader Uri="Shapefiles/tl_2008_41_unsd" />
     </igMap:MapLayer.Reader>
    </igMap:MapLayer>
   </igMap:XamWebMap.Layers>
  </igMap:XamWebMap>

 </Grid>
</UserControl>