Web Meractor (Auxillary Sphere) support in Sliverlight 2.1 version

301
1
03-12-2012 05:10 AM
LakshmananVenkatesan
Occasional Contributor II
Hello,

We are using ESRI Sliverlight API version 2.1 in our application. Currently we are using layers in WGS84 coordinate system in MXD and application works fine. When we change the layers coordinate system to Web Mercator (AS)  in map document, our  application fails to display the map.

1) Is version 2.1 supports WM (AS). If yes, what are all the changes needs to be done?
2. if not, what is latest version to support this projection

Error displayed

Failed to create a 'ESRI.ArcGIS.Client.Geometry.SpatialReference' from the text '102100'. [Line: 450 Position: 126]

Please help us quickly

SR
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
ArcGIS for Silverlight 2.1 does support both spatial references you mentionned.

It looks more like an error in your XAML code.

My best bet is that you tried to initialize the spatial reference in XAML with something like SpatialReference="102100".

It should be something like:
<esri:Map Name="MyMap" WrapAround="True" Grid.Row="0" ExtentChanged="MyMap_ExtentChanged">
  <esri:Map.Extent>
    <esri:Envelope XMin="-10603931.812" YMin="3384001.576" XMax="-10595782.642" YMax="3388315.896">
      <esri:Envelope.SpatialReference>
        <esri:SpatialReference WKID="102100" />
     </esri:Envelope.SpatialReference>
    </esri:Envelope>
  </esri:Map.Extent>
  ....
0 Kudos