Im getting this error when I switched to a different map.This map works finehttp://services.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServerThis map give me the errorhttp://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer private void AddMarker(UnitUI unit)
{
var graphic = new Graphic() { Symbol = GetSymbol(unit) };
double lat = unit.Base.Latitude;
double lng = unit.Base.Longitude;
var point = new MapPoint(lng, lat);
point.SpatialReference = MyMap.SpatialReference;
graphic.Geometry = new WebMercator().FromGeographic(point); <--error here "Invalid spatial reference "
GraphicsLayer.Graphics.Add(graphic);
} <esri:Map WrapAround="True" x:Name="MyMap" Grid.Row="1" Grid.ColumnSpan="2">
<esri:ArcGISTiledMapServiceLayer Initialized="MyMapLayer_Initialized"
Url="{StaticResource MapUrl}"/>
<esri:GraphicsLayer Initialized="MyMapLayer_Initialized">
</esri:GraphicsLayer>
<i:Interaction.Behaviors>
<esri:MaintainExtentBehavior />
</i:Interaction.Behaviors>
</esri:Map>