Using the Map Builder > Using More Map Builder Features > Displaying and Concealing a Map Layer > Adding Layer Styling based on Metadata

When metadata is associated with a layer, you can do the following:

Select the Data To Use For Styling

To select the data to by styled in a a layer containing values of metadata, do the following:

  1. Open the Builder with the default map.
  2. In the Map Layers tab, open the ESRI/Shape layer. The ESRI/Shape (data/World_Countries.shp) sublayer opens.
  3. Right-click the data/World_Countries.shp layer, then select Style Layer from the shortcut menu. The Select Layer Attributes window opens, see Figure 3.24.

images/defbldr_stylinglayerattribute.png

Figure 3.24 The Select Layer Attributes Window
  1. In the Meta Data Used for Color Coding list, select the data to be used for styling.

Set the Color Model for Numerical Data

For numerical data, an interval color model is used to style ranges of values with color interpolation. To set the color model for numerical data, do the following:

  1. In the Builder, open the Select Layer Attributes window for the default map. For more information, see Select the Data To Use For Styling.
  2. Select POP_1994 in the Meta Data Used for Color Coding list.

images/defbldr_stylenumericdata.png

Figure 3.25 Styling Numeric Data
Note
ILOG JViews Maps automatically computes the minimum and maximum values and assigns them to black and white shading. Any value between the minimum and maximum values is displayed with an interpolated color.
  1. Select 1,175,731,064 from the Values list and set the color to red using the Swatches tab.
  2. Select 0 from the Values list and set the color to pale yellow in the Swatches tab.
    Note
    to add or remove color steps, or change the value associated to each step, right-click on an element in Values and select Insert Limit from the shortcut menu. Using this technique you can use multiple colored steps to present ranges in the data.
  3. Click OK. The color styling is now visible in the map. This is shown in Figure 3.26.

images/defbldr_stylingpopulation.png

Figure 3.26 Styling for Population Metadata

Set the Color Model for Non-numerical Data

For non-numerical, each possible value can be associated to a separate color. To set the color model for non-numerical data, do the following:

  1. In the Builder, open the Select Layer Attributes window for the default map. For more information, see Select the Data To Use For Styling.
  2. Select CONTINENT from the Meta Data Used for Color Coding list.

images/defbldr_stylenonnumericdata.png

Figure 3.27 Styling Non-numeric Data
  1. Select Australia from the list.
  2. Set the color associated to Australia to pale pink using the Swatches tab.
  3. Click OK. The meta data is presented in the map using the new color scheme. This is shown in Figure 3.28

images/defbldr_stylinglayerstyled.png

Figure 3.28 Custom Styling Applied to Map Metadata

Remove Layer Styling

To remove layer styling, do the following:

  1. In the Map Layer tab of the Builder, right-click the styled layer, then select Style Layer from the shortcut menu. The Select Layer Attributes window opens.
  2. Click the Remove Color Coding button. The Select Layer Attributes window closes and all custom styling is removed from the layer.

images/defbldr_stylingremovecolorcoding.png

Figure 3.29 Remove Layer Styling