Select to view content in your preferred language

OSM as defaul map in ArcGIS Map Web Part

414
0
10-08-2013 12:14 PM
KoryunAkopyan
Deactivated User
Hi everyone. Please, help me or give any advice. I'm trying set default map in the ArcGIS web part to OpenStreetMap by editing MapWebPartStartupMapDocument. But it doesn't work. I tried to like this

<?xml version="1.0" encoding="utf-8"?>
<e:Map xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:e="http://schemas.esri.com/arcgis/client/2009"
   xmlns:esriMapping="http://schemas.esri.com/arcgis/mapping/2009"
   xmlns:esriExtensibility="http://schemas.esri.com/arcgis/client/extensibility/2010">
  <esriMapping:ScaleBarExtensions.ScaleBarMapUnit>Meters</esriMapping:ScaleBarExtensions.ScaleBarMapUnit>
  <e:Map.IsLogoVisible>False</e:Map.IsLogoVisible>
  <e:Map.Extent>
    <e:Envelope XMin="-16334576.8010418" YMin="699595.291282528" XMax="-6812752.83654833" YMax="7913098.29468664">
      <e:Envelope.SpatialReference>
        <e:SpatialReference WKID="102113" />
      </e:Envelope.SpatialReference>
    </e:Envelope>
  </e:Map.Extent>
  <e:OpenStreetMapLayer Url="http://OpenStreetMap.org" esriExtensibility:Document.IsBaseMap="True" esriExtensibility:MapApplication.LayerName="Topographic"/>
</e:Map>

I tried TiledMapServiceLayer and 102100, but it doesn't work too. Can anyone tell me how can I solve this problem?
0 Kudos
0 Replies