This is an archive related to a previous version of Esri Maps for SharePoint. If you need the current version go to http://doc.arcgis.com/en/maps-for-sharepoint/.

Configure color ramps

Esri Maps for SharePoint contains two configuration files that allow you to customize the color ramps displayed in the Color Scheme drop-down menu and Scheme Options dialog box.

The first configuration file is DefaultLinearGradientBrushes.xaml. The color ramps in this file populate the Color Scheme drop-down menu and Color Scheme selector in the Scheme Options dialog box when a layer that supports configuring symbology is selected in the Map Contents pane. See Layer types for information on layers that support symbology configuration.

The second configuration file is HeatMapLinearGradientBrushes.xaml. The color ramps in this file populate the Color Scheme drop-down menu when a heat map is selected in the Map Contents pane. See Heat maps for more information.

Editing the linear gradient brushes files

  1. Browse 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 Esri Maps Configuration Files.

    Esri Maps Configuration Files

    The document library opens.

  3. Check the DefaultLinearGradientBrushes.xaml or HeatMapLinearGradientBrushes.xaml item.
  4. Click the Documents tab on the ribbon and click Edit Document (check out the document if necessary).

    The file opens in your default XML editor

  5. Make the desired changes and save the file.
  6. Check the file back in to the Esri Maps Configuration Files library.

DefaultLinearGradientBrushes.xaml

The DefaultLinearGradientBrush.xaml file is a Resource Dictionary containing the collection of color ramps displayed in the Color Scheme drop-down menu and Scheme Options dialog box. Each color ramp is represented in XAML as a Silverlight LinearGradientBrush. See LinearGradientBrush Class for more information.

Only two GradientStops are allowed in the GradientStopCollection for each brush. These two GradientStops correspond to the beginning and end of the color ramp and must contain Offset attribute values of 0 and 1. The following XAML sample shows an example of one linear gradient brush. The DefaultLinearGradientBrush.xaml Resource Dictionary contains this brush and several others.

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <LinearGradientBrush x:Key="Red_Brush">
        <LinearGradientBrush.GradientStops>
            <GradientStopCollection>
                <GradientStop Color="#FFFF0000" Offset="0"/>
                <GradientStop Color="#FFFF8888" Offset="1" />
            </GradientStopCollection>
        </LinearGradientBrush.GradientStops>
    </LinearGradientBrush>

...

</ResourceDictionary>

HeatMapLinearGradientBrushes.xaml

The HeatMapLinearGradientBrushes.xaml file is a Resource Dictionary containing the collection of brushes used for drawing heat maps in the Map Web Part. See Heat maps for more information. The following XAML sample shows an example of one heat map brush. The HeatMapLinearGradientBrushes.xaml Resource Dictionary contains this brush and several others.

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <LinearGradientBrush x:Key="HeatMapBrush_1">
        <LinearGradientBrush.GradientStops>
            <GradientStopCollection>
                <GradientStop Color="#00FFFFFF" Offset="0.0"/>
                <GradientStop Color="#FF0000FF" Offset="0.5" />
                <GradientStop Color="#FFFF0000" Offset="0.75" />
                <GradientStop Color="#FFFFFF00" Offset="0.8" />
                <GradientStop Color="#FFFFFFFF" Offset="1" />
            </GradientStopCollection>
        </LinearGradientBrush.GradientStops>
    </LinearGradientBrush>

...

</ResourceDictionary>