Geographic Map Parent Tags

Using ADF Geographic Map Components 27-9

27.4.2 How to Customize the Labels of a Map Theme

By default, the ID of the map theme is used as the label when that theme is displayed in the legend or in the Theme Selection dialog. However, each map theme tag has the following attributes that serve as optional labels for the theme: ■ shortLabel: Specifies a label for the theme when displayed in the map legend. ■ menuLabel: Specifies a label for the theme in the Theme Selection dialog. Use these attributes to create meaningful labels that identify both the theme type color, point, bar graph, or pie graph and the data such as population, sales, or inventory so that users can easily recognize the available themes. To customize the labels of a map theme: 1. In the Structure Window, locate the map theme tag that you want to customize.

2. Right-click the tag node and choose Go to Properties.

3. In the Appearance attributes category of the Property Inspector, enter text in the

shortLabel attribute for display in the legend and in the menuLabel attribute for display in the Theme Selection Dialog. For example, you might want to enter the following text for a color theme that colors New England states according to population: shortLabel=Color - Population, NE Region

27.4.3 How to Customize Color Map Themes

When you create a color map theme, you can customize the colors used for the coloring of the background layer. You can specify the colors associated with the minimum and maximum ranges, and then specify the number of color ranges for the theme. For example, if the colors relate to the population on the map, the least populated areas display the minimum color and the most populated areas display the maximum color. Graduated colors between the minimum and maximum color are displayed for ranges between these values. To customize the colors of a color map theme: 1. In the Structure window, right-click the dvt:mapColorTheme node and choose Go to Properties .

2. In the Theme Data attributes category of the Property Inspector:

■ If you want to change the default colors associated with the minimum and maximum range of data values, then select the desired colors for the MinColor and MaxColor attributes respectively. ■ If you want to change the default number of color ranges for this theme, change the integer in the bucketCount attribute. For example, if dvt:mapColorTheme minColor=000000 maxColor= ffffff bucketCount=5, then the color for the five buckets are: 000000, 444444, 888888, bbbbbb, ffffff. Alternatively, you can specify the color for each bucket. To specify colors for multiple buckets, for the colorList attribute of dvt:mapColorTheme, bind a color array to the attribute or use a semicolon-separated string. Color can be specified using RGB hexadecimal. For example, if the value is colorList=ff0000;00ff00;0000ff, then the value of the first bucket is red, the second bucket is green, and the third bucket is blue.