Adding dynamic text to a strip map

Map marginalia can include such items as legends, a title, grids and graticules, scale bars, scale text, north arrow, and spatial reference information along with other graphics and text items. For more information, see Map elements.

Strip map example

The example above shows a strip map for the Rhine River between the cities of Köln and Koblenz. This 44-page series can be easily created by any ArcMap user with an Internet connection. The data comes from the World Topographic map service available at ArcGIS Online. You can easily re-create this strip map using Data Driven Pages, the geoprocessing tools available from the Data Driven Pages toolset, data frame properties, and dynamic text. You will need to create the line feature used to determine the route of the strip map. This can be done by creating a new line feature class using the ArcMap editing tools.

The example strip map above contains dynamic text to display the map name, current page number, and text for the previous and next pages in the series. Since strip maps follow a route, two of the most important elements on a strip map page are a label for the previous page and a label for the next page along the route.

Example of dynamic text for a strip map

The result of the Strip_Map_Index_Features geoprocessing tool includes a number of fields related to page number. Some of these fields can be used for dynamic text. These include LeftPage, RightPage, TopPage, and BottomPage. LeftPage is the PageNumber value of the index feature that appears to the left of the current index feature after the rotation has been applied. RightPage is the PageNumber of the index feature to the right. You would use these fields if the page orientation of the strip map is horizontal. If the page orientation is vertical, use TopPage and BottomPage.

CautionCaution:

Do not use PrevPage or NextPage for dynamic text. These fields are used for analyzing the creation order of index features. Creation order does not necessarily reflect the proper page order.

The steps below outline the procedure needed to add the following dynamic text elements:

Learn more about adding dynamic text for neighbor labels

The following steps enable Data Driven Pages using a previously created grid index feature class. These pages define the map extents for the example map book above. These steps assume you have completed the steps outlined in the following topics:

CautionCaution:

Though you can adapt these steps for your own maps or strip map, keep in mind that the steps cited in this example are specific for the sample map book shown above. Using these exact steps on a different set of maps may lead to unexpected results.

Steps:
  1. Click Page Text > Data Driven Page Number on the Data Driven Pages toolbar.

    Learn more about adding the Data Driven Pages toolbar

    The page number text element is added to the center of your map. It uses the default text symbol. To change the symbol, double-click the element and change the properties as you see fit.

  2. Click the Select Elements tool Select Elements on the Draw toolbar, click the text element, then drag it to the upper right corner of the page layout.
  3. This will be the label for the current page.
  4. Double-click the element and change the properties, such as font, color and alignment, as you see fit.
  5. Type the following for the text: Page <dyn type="page" property="number"/>.
  6. Page (with a space after the e) is static text and will appear for each page in the strip map series. The text between the tags (< and >) is the dynamic part of the text element.
  7. Click OK.
  8. Click Page Text > Data Driven Page Number on the Data Driven Pages toolbar.
  9. Not all dynamic text elements are available from the Data Driven Pages toolbar or from Insert > Dynamic Text from the main menu. This includes dynamic text for neighboring page labels. To add dynamic text for page labels you will need to manually edit existing text elements. Adding an available Data Driven Pages dynamic text element from the menu saves you the step of having to type in the type tag.
  10. Click the Select Elements tool Select Elements on the Draw toolbar, click the text element, then drag it so that it is right above and centered with the main data frame.
  11. This will be the label for the page that would be on top of the current page if all the pages of the strip map were laid out end-to-end.
  12. Double-click the element and change the properties, such as font, color and alignment, as you see fit.
  13. Type the following for the text: <dyn type="page" property="ToPage" preStr="Page " emptyStr=""/>.
  14. In this example we are using the preStr modifier to place the text Page (with a space after e) at the beginning of this dynamic text element. TopPage is the field containing the page number for the page that would be on top of the current page if all the pages of the strip map were laid out end-to-end.
  15. Click OK.
  16. Repeat steps 6 through 10. This time, place the text at the right below the main data frame and enter <dyn type="page" property="BottomPage" preStr="Page " emptyStr=""/> in the text box.

You have now placed the dynamic text elements needed for the strip map. You can export your strip map to a multipage PDF. There are a number of things you can do further to refine and add to your strip map. You can add title and overview map pages, create a locator map, and insert non-map pages. These examples should give you ideas on how you can use arcpy.mapping Python scripts and ArcMap functionality to enhance your strip map. Even though the specific scripts in these examples are meant for a specific map book, you can make simple changes to the scripts to have them work for your strip map or other map books.

Related Topics

3/5/2014