How To: Hide features in Data Driven Pages so only the feature of interest is visible


Instructions provided describe the steps to hide or mask all other features outside the extent of the feature of interest designated by the Data Driven Pages indexing layer.


The following workflow is most useful when working with polygon features as the Data Driven Pages indexing layer. For example, when each of the Hawaiian islands must be displayed on their own data driven page without parts of the nearby islands showing.

  1. Add the Data Driven Pages indexing layer to the Table of Contents twice.
Data Driven Pages Indexing layer
  1. Of the two identical layers, name the top-most layer 'Mask'.
Top-most layer
  1. On the View menu, select Layout View.
  2. Turn on the Data Driven Pages toolbar if needed. On the Customize menu, click Toolbars > Data Driven Pages, and click the Data Driven Page Setup button.
  3. Select the Enable Data Driven Pages option under the Definition tab.
  4. From the Layer drop-down, select the layer with the original layer name from the list (not Mask).
Enable Data Driven Pages option and original layer name
  1. Select the desired Name Field, and note this for Step 9. Click OK.
Name field
When browsing through the Hawaii map book, there are slivers of nearby islands displayed, which are not the feature of interest for each page. See the following screen capture, and note these slivers, circled in red.
Slivers circled in red
  1. Open the Layer Properties for the Mask layer, and click the Definition Query tab, then click Page Definition.
Page Definition Queries are only available when Data Driven Pages are enabled. If Data Driven Pages are not enabled, the Page Definition button on the Definition Query tab of the Layer Properties dialog box cannot be seen.
  1. Click the Enable check box, and set the Page Name field to the same field used to enable Data Driven Pages in Step 7.
Page Name field
By choosing the same Page Name field as the Name Field specified in the Data Driven Page Setup dialog box, the Mask features are now filtered by name for the current page. While browsing through the pages, the query changes, and a new set of features is drawn appropriate to the new page. By choosing 'Not Match' in the next step, all features in the Mask layer that do not match the name for the current page are displayed.
  1. Select 'Don't Match', click OK and Apply, and click OK again.
Currently, the page definition does not appear to have changed anything in the map, but the Mask symbology must still be changed.
  1. Click the Mask symbol in the Table of Contents to open the Symbol Selector.
  2. Change the Fill Color and the Outline Color to White, and click OK.
  3. Browse through the Data Driven Pages. Only the feature of interest is visible and all other parts are not displayed.
If planning to use a background, basemap, or raster layer in the map, this workflow does not provide desired results.
Only the feature of interest is visible

Related Information