Creating a dynamic legend (Maritime Charting)
The graphic table element can be used to create dynamic surround elements such as a legend. The dynamic legend is updated based on the data frame's visual extent whether the legend is used in an MPS-Atlas map series or within a single .mxd file.
Adding cartographic data
Before you can create the legend, you need to add the data to the map. In this walk-through, you are using the USA dataset, which is in a template database that is included with the ArcGIS for Desktop installation.
- Start ArcMap.
-
[データの追加] ボタン をクリックします。
[データの追加] ダイアログ ボックスが開きます。
-
Browse to C:\Program Files\ArcGIS\Desktop10.2.1\TemplateData.注意:
The data used for this example is located at C:\Program Files\ArcGIS\Desktop10.2.1\TemplateData\TemplateData.gdb by default for a standard installation.
- Add all the feature classes within the USA feature dataset to the data frame except the states feature class.
- Once all the feature classes are added to ArcMap, organize the
layers in the following order by clicking and dragging them to the appropriate location:
- U.S. Cities
- U.S. Rivers (Generalized)
- Country boundary, international border and coastline, for the United States
- U.S. National Transportation Atlas Interstate Highways
- Internal state boundaries of the United States
- U.S. Lakes (Generalized)
- U.S. Counties (Generalized)
- Countries/islands neighboring the US
Symbolizing the U.S. Cities layer
The dynamic legend includes symbols for each of the features. In this part of the walk-through, you are going to define symbols for the U.S. Cities layer from the USA feature dataset.
-
Right-click the U.S. Cities layer in the table of contents and click Properties.
The Layer Properties dialog box appears.
- Click the Symbology tab.
- Click the Categories heading in the left-hand pane.
- In the list that appears, click Unique values, many fields.
- Click the first Value Fields drop-down arrow and choose TYPE.
- Click the second Value Fields drop-down arrow and choose CAPITAL.
- Uncheck the check box under the Symbol column.
-
Click Add Values.
The Add Values dialog box appears.
-
Click Complete List.
The list expands to display all values.
-
Select values to add by pressing and holding the CTRL key and clicking the following:
- city, N
- city, Y
- town, N
注意:City, N represents noncapital cities; city, Y represents capital cities; and town, N represents noncapital towns.
-
Click OK.
The Layer Properties dialog box appears.
-
Double-click the symbol for city, N.
The Symbol Selector dialog box appears.
- Click the symbol for Circle 1.
- Click or type 10 in the Size text box.
-
Click OK.
The Layer Properties dialog box appears.
- Repeat steps 12 through 15 for the town, N symbol, but click or type 8 in the Size text box.
-
Double-click the symbol for city, Y.
The Symbol Selector dialog box appears.
-
Click Edit Symbol.
The Symbol Property Editor dialog box appears.
- Click the Type drop-down arrow and choose Character Marker Symbol.
- Click the Font drop-down arrow and choose ESRI Cartography.
- Type 241 in the Unicode text box.
- Type or choose 12 in the Size text box.
-
Click OK.
The Symbol Selector dialog box appears.
-
Click OK.
The Layer Properties dialog box appears.
- Click city, N in the Label column and rename it City.
- Click city, Y in the Label column and rename it Capital.
- Click town, N in the Label column and rename it Town.
-
Click one of the values to activate the sort arrows on the right and use them to arrange the values in the following order:
- Capital
- City
- Town
- [OK] をクリックします。
Symbolizing the U.S. Rivers (Generalized) layer
The dynamic legend includes symbols for each of the features. In this part of the walk-through, you are going to define symbols for the U.S. Rivers (Generalized) layer from the USA feature dataset.
-
Right-click the U.S. Rivers (Generalized) layer in the table of contents and click Properties.
The Layer Properties dialog box appears.
- Click the Symbology tab.
- Click the Categories heading in the left-hand pane and click Unique values.
- Uncheck the check box in the Symbol column.
- If necessary, click the Value Field drop-down arrow and choose NAME.
- Click Add All Values.
- Select all by holding down the SHIFT key and selecting all the values.
- Right-click the selected values and click Group Values.
-
Double-click the symbol in the Symbol column.
The Symbol Selector dialog box appears.
-
Click the symbol River.
ヒント:
It will be a narrow blue line in the first column.
-
Click OK.
The Layer Properties dialog box appears.
- Click the group values name in the Label column and rename it Rivers.
- [OK] をクリックします。
Symbolizing the Country boundary, international border, and coastline, for the United States layer
The dynamic legend includes symbols for each of the features. In this part of the walk-through, you are going to define symbols for the Country boundary, international border and coastline, for the United States layer from the USA feature dataset.
-
Right-click the Country boundary, international border and coastline, for the United States layer in the table of contents and click Properties.
The Layer Properties dialog box appears.
- Click the Symbology tab.
- Click the Categories heading in the left-hand pane and click Unique values.
- Uncheck the check box under the Symbol column.
- Click the Value Field drop-down arrow and choose TYPE.
- Click Add All Values.
- Hold down the CTRL key and click to choose Hawaii, Lake, and Ocean.
- Right-click the selected values and click Group Values.
-
Double-click the symbol for the grouped values under the Symbol column.
The Symbol Selector dialog box appears.
- Scroll until you find the symbol for Coastline and click it to choose it.
-
Click OK.
The Layer Properties dialog box appears.
-
Double-click the symbol for Land.
The Symbol Selector dialog box appears.
- Click the symbol for Boundary, National.
-
Click OK.
The Layer Properties dialog box appears.
- Click Hawaii; Lake; Ocean under the Label column and rename it Coastline.
- Click Land under the Layer column and rename it International Boundaries.
- [OK] をクリックします。
Symbolizing the U.S. National Transportation Atlas Interstate Highways layer
The dynamic legend includes symbols for each of the features. In this part of the walk-through, you are going to define symbols for the U.S. National Transportation Atlas Interstate Highways layer from the USA feature dataset.
-
Right-click the U.S. National Transportation Atlas Interstate Highways layer in the table of contents and click Properties.
The Layer Properties dialog box appears.
- Click the Symbology tab.
- Click the Categories heading in the left-hand pane and click Unique values.
- Uncheck the check box under the Symbol column.
- Click the Value Field drop-down arrow and choose ROUTE_NUM.
- Click Add All Values.
- Select all by holding down the SHIFT key and selecting all the values.
- Right-click the selected values and click Group Values.
-
Double-click the symbol in the Symbol column.
The Symbol Selector dialog box appears.
- Click the symbol for Freeway.
-
Click OK.
The Layer Properties dialog box appears.
- Click the grouped values name in the Label column and rename it Interstate Highways.
- [OK] をクリックします。
Symbolizing the Internal state boundaries of the United States layer
The dynamic legend includes symbols for each of the features. In this part of the walk-through, you are going to define symbols for the Internal state boundaries of the United States layer from the USA feature dataset.
-
Right-click the Internal state boundaries of the United States layer and click Properties.
The Layer Properties dialog box appears.
- Click the Symbology tab.
- Click the Categories heading in the left-hand pane and click Unique values.
- Uncheck the check box under the Symbol column.
- Click the Value Field drop-down arrow and choose TYPE.
- Click Add All Values.
-
Double-click the symbol for State Bnd.
The Symbol Selector dialog box appears.
- Click the symbol for Boundary, State in the ESRI_Optimized style reference.
-
Click OK.
The Layer Properties dialog box appears.
- Click State Bnd under the Label column and rename it State Boundaries.
- [OK] をクリックします。
Symbolizing the U.S. Lakes (Generalized) layer
The dynamic legend includes symbols for each of the features. In this part of the walk-through, you are going to define symbols for the U.S. Lakes (Generalized) layer from the USA feature dataset.
-
Right-click the U.S. Lakes (Generalized) layer and click Properties.
The Layer Properties dialog box appears.
- Click the Symbology tab.
- Click the Categories heading in the left-hand pane and click Unique values.
- Uncheck the check box under the Symbol column.
- Click the Value Field drop-down arrow and choose NAME.
- Click Add All Values.
- Select all by holding down the SHIFT key and selecting all the values.
- Right-click the selected values and click Group Values.
-
Double-click the symbol for the group values under the Symbol column.
The Symbol Selector dialog box appears.
- Click the symbol for Lake.
-
Click OK.
The Layer Properties dialog box appears.
- Click the grouped values name under the Label column and rename it Lake.
- [OK] をクリックします。
Symbolizing the U.S. Counties (Generalized) layer
The dynamic legend includes symbols for each of the features. In this part of the walk-through, you are going to define symbols for the U.S. Counties (Generalized) layer from the USA feature dataset.
-
Right-click the U.S. Counties (Generalized) layer and click Properties.
The Layer Properties dialog box appears.
- Click the Symbology tab.
- Click the Categories heading in the left-hand pane and click Unique values.
- Uncheck the check box under the Symbol column.
- Click the Value Field drop-down arrow and choose NAME.
-
Click Add All Values.
The following ArcMap warning appears:
- Click Yes.
- Select all by holding down the SHIFT key and selecting all the values.
- Right-click the selected values and click Group Values.
-
Double-click the symbol for the grouped values under the Symbol column.
The Symbol Selector dialog box appears.
-
Click Edit Symbol.
The Symbol Property Editor dialog box appears.
-
Click Outline.
The Symbol Selector dialog box appears.
- Click the symbol for Boundary, City.
-
Click OK.
The Symbol Property Editor dialog box appears.
-
Click the Color drop-down arrow and choose Apple Dust.
ヒント:
Look for Apple Dust in the lower portion of the color picker in the green columns.
-
Click OK.
The Symbol Selector dialog box appears.
-
Click OK.
The Layer Properties dialog box appears.
- Click the grouped values name under the Label column and rename it Counties.
- [OK] をクリックします。
Symbolizing the Countries/islands neighboring the US layer
The dynamic legend includes symbols for each of the features. In this part of the walk-through, you are going to define symbols for the Countries/islands neighboring the US layer from the USA feature dataset.
-
Right-click Countries/islands neighboring the US layer and click Properties.
The Layer Properties dialog box appears.
- Click the Symbology tab.
- Click the Categories heading in the left-hand pane and click Unique values.
- Uncheck the check box under the Symbol column.
- Click the Value Field drop-down arrow and choose CNTRY_NAME.
- Click Add All Values.
- Select all by pressing and holding the SHIFT key and selecting all the values.
- Right-click the selected values and click Group Values.
-
Double-click the symbol for the grouped values under the Symbol column.
The Symbol Selector dialog box appears.
- Click the Fill Color drop-down arrow and choose Gray 10%.
- Click the Outline Color drop-down arrow and choose No Color.
-
Click OK.
The Layer Properties dialog box appears.
- Click the grouped values name under the Label column and rename it International Countries.
- [OK] をクリックします。
Creating the legend for a map series
After all the layers that are going to be part of the legend have been symbolized, a map series needs to be created based on the counties within California. The graphic table element that will serve as the base for the legend also needs to be created.
- For this example, create a map series using the counties within California.
- Once your map series is created, on the main menu, click View → Layout View.
- Right-click Sacramento in the map series and click Set Current Map Sheet.
-
On the main menu, click Insert → Graphic Table Element.
The New Table dialog box appears.
- Click to choose Item to Row in the Available formats list.
-
Click Wizard.
The Set Table Format dialog box appears.
- Click the Width drop-down arrow and choose Expand cells.
- Click the Height drop-down arrow and choose Expand cells.
-
Click Next.
The Selecting table datasources dialog box appears.
- Select all the data sources from the list by pressing the SHIFT key and selecting all the data sources.
- If necessary, check the Always keep table dynamically synchronized with data frame and Define Filters check boxes.
-
Click Next.
The Defining table fields dialog box appears.
- Check the Show Common Fields and Properties check box.
- In the Source Fields list, click Shape and click the > button to move the field to the Table Fields list.
- In the Source Properties list, choose FEATURE_SYMBOL_LABEL and click the > button to move the field to the Table Fields list.
-
Click Next.
The Defining filters dialog box appears.
- Click U.S. Cities in the Data sources list.
-
Click Filter.
The Data Filters dialog box appears.
- Click the Visible Extent option in the list in the Base Selection area.
-
Click Add Filter and click Sorting Filter.
The Sort Options dialog box appears.
-
Click Add Table Fields.
The Table Fields Selector dialog box appears.
- Click Capital in the Name column.
-
Click OK.
The Sort Options dialog box appears.
- Click the Sort Order drop-down arrow and choose Descending.
-
Click OK.
The Data Filters dialog box appears.
-
Click OK.
The Defining filters dialog box appears.
- Click U.S. Rivers (Generalized) in the Data sources list.
-
Click Filter.
The Data Filters dialog box appears.
- Click the Visible Extent option in the list in the Base Selection area.
- [OK] をクリックします。
- Repeat steps 28 through 30 for the following data sources:
- Country boundary, international border and countries
- U.S. National Transportation Atlas Interstate Highways
- Internal state boundaries of the United States
- U.S. Lakes (Generalized)
- U.S. Counties (Generalized)
- Countries/islands neighboring the US
-
Click Data Items.
The Data Items dialog box appears.
-
Click Operations.
The Operations Order dialog box appears.
- In the Available Operations list, click Unique and Removing Empties and click the > button to move them to the Operations Order list.
-
Click OK.
The Data Items dialog box appears.
-
Click Unique Options.
The Unique options dialog box appears.
-
Click Add Table Fields.
The Table Fields Selector dialog box appears.
- Click Feature_Symbol_Label.
-
Click OK.
The Unique options dialog box appears.
-
Click OK.
The Data Items dialog box appears.
- [OK] をクリックします。
-
Click Finish.
The New Table dialog box appears.
-
Click OK.
The following table appears in the map layout:
Formatting the legend
After the basic table is created for the legend, you can refine its appearance. This part of the walk-through guides you through the process of adding lines between the symbols and labels and modifying the table borders.
-
Right-click in the legend and choose Properties.
The Table Properties dialog box appears.
- Click the Table Format tab.
-
Click Table Design.
The Item To Row Table Design dialog box appears.
- Click the X-units drop-down arrow and choose Centimeters.
- Click the Y-units drop-down arrow and select Centimeters.
- Hold down the SHIFT key and click to select cells h1, A and h1, B in the Table Layout area.
- Right-click cell h1, A and click Delete → Rows.
- Repeat steps 6 and 7 for cells f1, A and f1, B.
- Hold down the SHIFT key and click to select cells c1, A and c1, B.
-
Right-click cell c1, A and click Properties.
The Properties dialog box appears.
- Click the Border tab.
- Click the symbol for None in the Presets area.
-
Click OK.
The Item To Row Table Design dialog box appears.
- Click the plus sign (+) next to c1, B in the Elements pane to expand the cell tree.
-
Right-click FieldTextElement and click Properties.
The Properties dialog box appears.
- Click the Alignment tab.
- Click the Horizontal drop-down arrow and choose Right.
-
Click OK.
The Item To Row Table Design dialog box appears.
- Click the plus sign (+) next to c1, A in the Elements pane to expand the cell tree.
-
Right-click FieldSymbolElement and click Properties.
The Properties dialog box appears.
- Click the Fill Dimensions tab.
- Click Rounded Rectangle in the Shape list.
- Click the Line Dimensions tab.
- Click Horizontal.
-
Click OK.
The Item To Row Table Design dialog box appears.
-
Right-click c1, A in the Table Layout and click Insert → Column Right.
A new column is added between cells c1, A and c1, C.
- Click cell c1, B.
-
Right-click cell c1, B in the Elements pane and click Add Element → Line.
The New line element dialog box appears.
- Click the Symbol tab.
-
Click Change Symbol.
The Symbol Selector dialog box appears.
- Scroll down and click the Dashed with 1 Dot symbol.
-
Click Edit Symbol.
The Symbol Property Editor dialog box appears.
- Click the Cartographic Line tab, if necessary.
- Click the dashed line in the Layers window.
- Click the Delete button .
- Click the Template tab.
- Click and slide the light gray square to create a gap of three white squares.
- Click or type 1 in the Interval text box.
- Click the Units drop-down arrow and choose Points if necessary.
-
Click OK.
The Symbol Selector dialog box appears.
-
Click OK.
The New line element dialog box appears.
- Click the Flex Margins tab.
- Check the Left check box.
- Click the Cell drop-down arrows and set the cell to c1, A.
- Click the Position drop-down arrow and choose Right.
- Click the Element drop-down arrow and choose FieldSymbolElement.
- Check the Right check box.
- Click the Cell drop-down arrow and set the cell to c1, C.
- Click the Position drop-down arrow and choose Left.
- Click the Element drop-down arrow and choose FieldTextElement.
- Click the Margins tab.
- Type 0.1 in the Left and Right text boxes.
- Click the Alignment tab.
- Click the Vertical drop-down arrow and choose Bottom.
-
Click OK.
The Item To Row Table Design dialog box appears.
-
Click OK.
The Table Properties dialog box appears.
-
Click OK.
The resulting legend will be similar to the following:
- Switch between map sheets in the map series by right-clicking a map sheet and clicking Set Current Map Sheet to see the legend change dynamically.