# 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="/files/5lMEGAzTkVAWt0TdxzzF" 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="/files/ha4kMXIyFz8EgQcIiHPH" alt="Name-only layer legend"><figcaption><p>Name-only layer legend</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.felt.com/js-sdk-api-reference/layers/legenddisplay.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
