Skip To Content

Work with the legend

The legend reflects how map layers are organized in Adobe Illustrator. Strategies for organizing your map layers and using the legend are described below. The intent of the legend is to provide a starting point for the design and layout process using Illustrator.

Note:

The legend is not intended to be used as is, it's basic output format.

Add a legend

There are two ways to add a map legend:

The legend appears under the Artboard in Illustrator. (The first legend that is generated for an individual Illustrator file is aligned to the left edge of the Artboard, and each subsequent legend that you generate on an Illustrator file appears to the right of any previously created legend.)

Note:

You do not need to retain the original layer structure or order. You can reorganize layers after you sync. Confirm that your layer structures adhere to legend best practices, and review the layer organization below.

Add a legend when you download a map

Add a legend as you simultaneously download your map into Adobe Illustrator.

  1. In the Compilation window, click the Open Processes window button Open Processes window.
  2. In the Processes window, check the Add Legend box.
  3. In the Compilation window, click Sync.

    As you download or sync the map, a legend is automatically added. The legend's structure is based on the layer structure in the Compilation window.

    Tip:

    If the Add Legend box remains checked, a new legend is automatically created with each subsequent sync. To prevent this, after the legend is added, uncheck the Add Legend box.

Add a legend after you download a map

Use the legend builder to add a legend after the map has been downloaded and designed.

  1. Return to the Compilation window for your map and click the Open Processes window button Open Processes window.
  2. In the Processes window, check the Add Legend box.
  3. Click Run to add the legend to your downloaded map.

    When you add a legend after your map is downloaded, the legend builder reflects common map layer structures, and you can organize your layers.

Organize layers

Adding a legend to a well-organized layer structure works best. Your map can be organized by one (or all) of the following structures:

  • The default ArcGIS Maps for Adobe Creative Cloud layer structure, as generated upon syncing your map
  • Classed-Layer organization
  • Unclassed-Layer organization

Maps for Creative Cloud default layer structure

The legend is based on the layer structure that is created in the Compilation window. Each of the layers in your Illustrator file is nested in a parent layer named YourMapboardName_Sync_1. Subsequent syncs from the same mapboard are added to the same Illustrator file, with any newly added layers in a second parent layer named YourMapboardName_Sync_2, YourMapboardName_Sync_3, and so on. The parent layers are ignored when the legend is generated.

If the Add Legend check box is checked in the Processes window , a new legend is generated for each sync.

Note:
The legend only generates symbols for the layers that are enabled for export in the Compilation window.

Classed-layer structure

You can classify layers in the Compilation window before syncing the map. Layers can be classified by numerical or categorical data. If a layer is classified by either numerical or categorical data, the legend will contain a symbol for all the classes, and these class symbols will be under the layer name in the legend. The legend creates a symbol from the first path in each main layer or from the first path in a sublayer in a classed‑layer structure. For example, if your compilation layers are classed, the layer structure will be MapboardName_Sync_x > Layer Name > Class A, Class B, Class C, ClassN…

The legend items for these classes will be symbolized based on the symbolization of the top path in each class sublayer.

For example, if you have a layer named Arizona Roads and Highways and it is classified by road type, it will appear as follows in the legend, where the Layer Name is Arizona Roads and Highways and the classes are the symbol names adjacent to the symbolization:

Classified layers in the legend builder

You can classify manually added layers, and the legend will be created accordingly.

You can classify layers after you download them.

Unclassed-layer structure

When you first sync a map with ArcGIS Maps for Adobe Creative Cloud, the Illustrator layer structure includes a first-level layer named MapboardName_Sync_1 that contains all the map layers that you added to your compilation. This first-level layer, and the elements and labels (if you added labels) layers are ignored when the legend is generated (see Layers that do not appear in a legend for more information).

If you are using the original default layer structure, an expected unclassed legend item is as follows:

  • Symbology—MapboardName_Sync_1 > Unclassed Layer Name > Symbology from the uppermost path in this Unclassed layer.
  • Legend symbol name—The legend symbol name in your generated legend will be the same name as the unclassed layer. If you have a layer structure for a Highways layer in a mapboard named North America, the legend item will be named Highways.

Add a legend from manually manipulated artwork layers

Adding a legend for manually manipulated artwork layers (layers added or changed after sync) need to be run after the map is synced (that is, the legend cannot be generated while the map is syncing).

For example, you can create a layer named Campsites in your Illustrator map, and add point symbology—or an Illustrator symbol from a symbols library—and this symbol will be added to your legend, with the name Campsites, when you generate the legend using the legend builder in the Processes window, and clicking the Run button.

Note:
A legend symbol is created based on the style of the uppermost path in the layer’s stack only. If you have several symbol appearances to add manually, you need to follow the Classed-layer structure or create a parent layer for each symbol appearance.

When adding layers manually, you can either make the new layer a parent (first order) layer in Illustrator or create it in the Maps for Creative Cloud default layer structure as a sublayer to the parent YourMapboardName_SyncX layer. If you place your manually added layers in this original sync’s parent layer, they need to be a sublayer (child) of this parent layer.

Manually created layers can also be classed, where the legend creates a category label for the main layer, and then creates a legend item for each of the main layer’s classes.

Layers that do not appear in a legend

The following explains why some layers do not appear in a legend:

  • Raster and image layers are not included in the legend.
  • If you generate a legend based on the default Maps for Creative Cloud layers, the legend builder ignores the parent layer name (MapboardName_Sync_1, for example), the scale bar, and the items in the elements layers, such as the Esri logo and copyright text. If you added labels with the Attributes tool (which creates text layers), they're ignored by the legend as well.

    The legend also ignores any labels and layers that are in the Labels layer that is automatically generated when the map is synced.

    Note:

    If you manually create a layer, and name it Labels, it is not ignored by the legend builder unless you turn off the visibility of this layer before running the legend builder.

  • No symbols are added to the legend if its layer is turned off. This means that if you are building a legend upon syncing, and you want an item to appear in the legend, you need to turn its visibility on in the Compilation window.

    If you are running the legend after you downloaded a map and styled it in Illustrator, you can turn on the visibility of the layers that you want to appear in the legend, and turn off the visibility of layers that you do not want to appear in the legend.

    Note:

    A path does not need to be on the Artboard for it to be added to the legend. It is important to ensure that any sketching or testing is kept in separate layers with the visibility turned off to avoid adding unwanted symbols to your legend.