# LegendDisplay

***

> **LegendDisplay**: `"default"` | `"nameOnly"`

Describes how the layer is displayed in the legend.

There are two display modes:

1. Default:
   * Shows layer name and caption
   * Shows representation of the layer's viz (e.g. color swatches, proportional symbols)

<figure><img src="https://1346268847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0eksRydsZ8lvtEIxgbY5%2Fuploads%2Fgit-blob-9090992ddeb03c6a58f6592ca21d952a13338a9f%2Flegend-default.png?alt=media" alt="Default layer legend"><figcaption><p>Default layer legend</p></figcaption></figure>

2. Name-only (compact display):
   * Shows only layer name and caption
   * Hides representation of the layer's viz

<figure><img src="https://1346268847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0eksRydsZ8lvtEIxgbY5%2Fuploads%2Fgit-blob-7275b3ae714c7361aed531c4894cbe18b1c0be8d%2Flegend-name-only.png?alt=media" alt="Name-only layer legend"><figcaption><p>Name-only layer legend</p></figcaption></figure>
