Configuring the default map

ArcGIS for SharePoint includes two Extensible Markup Language (XML) files that are used to initialize the default map for the ArcGIS Map Web Part and the ArcGIS Location Field. These files, named MapWebPartStartupMapDocument.xaml and LocationOnMapStartupMapDocument.xaml, are deployed to the ArcGIS Mapping Configuration Files document library within each site collection on which ArcGIS for SharePoint is activated. The default map can be modified by editing these XML files.

To edit the XML file, complete the following steps:

  1. Navigate to the library containing the configuration file using 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. Check the MapWebPartStartupMapDocument.xaml or LocationOnMapStartupMapDocument.xaml item.
  4. Click the Documents tab on the ribbon and click Edit Document (check out the document if necessary).
  5. Click OK if the following warning is displayed:
    Warning message
    The MapWebPartStartupMapDocument.xaml file will open 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"
       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="102100" />
          </e:Envelope.SpatialReference>
        </e:Envelope>
      </e:Map.Extent>
      <e:ArcGISTiledMapServiceLayer Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" esriExtensibility:Document.IsBaseMap="True" esriExtensibility:MapApplication.LayerName="Topographic"/>
    </e:Map>
    
  6. Make the desired changes and save the file. For example, the element defining the basemap could be updated to define a different map service:
    <e:ArcGISTiledMapServiceLayer Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />
    
    Map Web Parts within the same site collection that are created after the changes have been saved will reflect the updated configuration.
  7. Check the file back in to the ArcGIS Mapping Configuration Files library.
11/30/2012