Configuring the default map

ArcGIS for SharePoint includes an XML file that is used to initialize the default map for the ArcGIS Map Web Part. This file, named MapWebPartStartupMapDocument.xml, is deployed to the ArcGIS Mapping Configuration Files document library within each site collection on which ArcGIS for SharePoint is activated. The default map can easily be modified by editing this XML file. The steps for doing so are outlined below.

  1. To navigate to the library containing the configuration file, use the Quick Launch links or the Site Actions menu and click View All Site Content.
  2. Under the Document Libraries heading, click ArcGIS Mapping Configuration Files:
    Document Libraries file listing
    The document library opens.
  3. Click the MapWebPartStartupMapDocument item.
  4. Click the Documents tab on the ribbon and click Edit Document.
    1. Click OK if a warning is displayed:
      Warning message
      The MapWebPartStartupMapDocument.xml file opens in your default XML editor:
      <?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" >
           <esriMapping:ScaleBarExtensions.ScaleBarMapUnit>Meters</esriMapping:ScaleBarExtensions.ScaleBarMapUnit>
           <e:Map.Extent>
              <e:Envelope XMin="-16334576.8010418" YMin="699696.291282528" XMax="-6812752.83654833" YMax="7913098,29468664">
                  <e:Envelope.SpatialReference>
                     <e:SpatialReference WKID="102100" />  
                  </e:Envelope.SpatialReference> 
              </e:Envelope>
           </e:Map.Extent>
           <e:ArcGISTiledMapServiceLayer Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />
      </e:Map>
      
  5. Make your changes and save them. In this example, the default basemap has been changed to the topographic basemap:
    <e:ArcGISTiledMapServiceLayer Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" />
    
    You will see the changes applied next time you add the ArcGIS Map Web Part to a page.
8/12/2011