# Zoom to layer

You can use the Zoom to layer functionality in Builder to zoom your map to display all the features of a layer. This helps you quickly locate your layer, speeding up your exploration journey.

<figure><img src="/files/cSvVTUJncfbUUoBsWi5U" alt=""><figcaption></figcaption></figure>

## **Accessing zoom to layer**

The Zoom to Layer feature can be accessed from the Layer Card and Layer Panel for Editors, and from the legend for both Editors and Viewers.

<figure><img src="/files/RUfCgaaCICMEkwcb86zC" alt=""><figcaption></figcaption></figure>

\
If your layer features have been filtered by Widgets or SQL Parameters, the zoom will always account for this filtering, allowing you to easily focus on the selected features.

{% hint style="info" %}
**Limitations**

Please note that Zoom to layer is not supported for H3 spatial indexes in **PostgreSQL** and **Redshift**. Additionally, it is not supported for **Databricks** sources.

Zooming to layers linked to **spatial index sources** (H3 or Grid) and **pre-generated tileset** sources won't take into account the widget filtering status.

When a **parameter control combination** does not return any values, the Zoom to layer functionality will not work and will return an error message.
{% endhint %}

## Switching layer visibility

The eye icon in the Layer Card, Layer Panel, and Legend allows users to easily toggle layers on or off. For maps with many layers, the "Show only this/Show all layers" functionality is particularly useful. It enables you to switch off all other layers or make them all visible if only one layer is currently displayed.

<figure><img src="/files/m5zr8OxORDGvSWCEPZE8" alt=""><figcaption></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://docs.carto.com/carto-user-manual/maps/layers/zoom-to-layer.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.
