How To: White-out or hide features in Data Driven Pages, so that only the feature of interest is visible
Instructions provided describe the steps to white-out 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.
An example of when this workflow might be useful is in the event you would like each of the Hawaiian islands to be displayed on their own data driven page without parts of the nearby islands showing.
- Add the Data Driven Pages indexing layer to the Table of Contents (TOC) twice.
- Of the two identical layers, name the top-most layer 'Mask'.
- On the View menu, select Layout View.
- 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.
- Select the 'Enable Data Driven Pages' option.
- From the Layer drop-down, choose the layer with the original layer name from the list (not Mask).
- Select the desired Name Field and note this for Step 9. Click OK.
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.
- Open the Layer Properties for the Mask layer and click the Definition Query tab > Page Definition.
Page Definition Queries are only available when Data Driven Pages are enabled. If Data Driven Pages are not enabled, you will not see the Page Definition button on the Definition Query tab of the Layer Properties dialog box.
- Click the Enable check-box and set the Page Name field to the same field used to enable Data Driven Pages in Step 7.
By choosing the same Page Name field as the Name Field specified in the Data Driven Page Setup dialog, 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.
- 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.
- Click the Mask symbol in the TOC to open the Symbol Selector.
- Change the Fill Color and the Outline Color to White and click OK.
- Browse through the Data Driven Pages. Only the feature of interest is visible and all other parts are not displayed.
If planning to utilize a background, basemap, or raster layer in the map, this workflow does not provide desired results.