How to Customize the Labels of a Map Theme How to Customize Color Map Themes

Using ADF Geographic Map Components 27-13 There are no attributes to set for this tag. It is used to wrap the individual pie graph item tags.

2. In the Structure window, right-click the dvt:mapPieSliceSet node and choose

Insert inside dvt:mapPieSliceSet Pie Slice Item. 3. In the Property Inspector, enter any unique ID and color you want to use for the first slice that appears in the graph. To find the sequence of the slices in the graph, examine the Edit Pie Graph Map Theme Binding dialog. The sequence of the entries in the Pie Slices Attribute column of that dialog determines the sequence that slices appear in the graph. For example, in Figure 27–7 , the first slice in the graph represents Sales, the second slice represents Profit, and the third slice represents Cost. Figure 27–7 Edit Pie Graph Map Theme Binding Dialog 4. Repeat Step 3 for every slice in the graph.

27.4.9 What Happens When You Customize the Slices in a Map Pie Graph Theme

When you use the Edit Pie Graph Map Theme Binding dialog to customize the slices in a map pie graph theme, the sequence of the slices reflect the sequence of the entries in the Pie Slices Attribute column of the dialog. Example 27–4 shows sample XML code generated in a JSF page when you customize the slices in a map pie graph. Example 27–4 Code for Customizing the Slices in a Map Pie Graph dvt:map . . . dvt:mapPieGraphTheme . . . dvt:mapPieSliceSet dvt:mapPieSliceItem color=ffffff id=slice1 dvt:mapPieSliceItem color=ffff00 id=slice2 dvt:mapPieSliceItem color=ff0000 id=slice3 dvt:mapPieSliceSet dvt:mapPieGraphTheme 27-14 Web User Interface Developers Guide for Oracle Application Development Framework dvt:map

27.5 Adding a Toolbar to a Map

When you create an ADF geographic map, also create a map toolbar if you want to be able to display the legend and the information panel, select themes if you have multiple themes of the same type, or use any of the distance measurement, area measurement, or selection tools.

27.5.1 How to Add a Toolbar to a Map

Because the map toolbar is a component that is separate from the map, you can position the toolbar on the JSF page above or below the map. The following procedure assumes that a map component exists on the JSF page. To create a map toolbar: 1. In the Structure window, right-click the dvt:map node and choose Insert before dvt:map or Insert after dvt:map ADF Data Visualization. 2. From the ADF Data Visualization Item dialog, select Toolbar. 3. In the Insert Toolbar wizard that displays, enter the ID of the map on which this toolbar will operate and click Next.

4. Enter a unique ID for the toolbar and optionally change the settings that control

the visibility of each tool.

27.5.2 What Happens When You Add a Toolbar to a Map

When you add a toolbar to a map, the following occur: ■ A toolbar appears in the JSF page above or below the map as requested. The toolbar contains all the tools unless you change the visibility of one or more tools. ■ XML code is generated and appears in the JSF page above or below the code for the map. Example 27–5 shows sample code for a toolbar that is associated with a map with the ID of map_us. It also shows the location of the code for the map. Example 27–5 Code Generated for a Map Toolbar af:form dvt:mapToolbar mapId=map_us id=T1 dvt:map id=map_us . . . dvt:map af:form