# Zoom-based Styling

{% hint style="info" %}
Zoom-based styling is useful to change how features and labels are shown at different zoom levels.
{% endhint %}

Most of the properties used on the `style` and `label` blocks can be defined using interpolators to enable zoom-based styling. Take a look at the full list of properties that can be interpolated in [the full specification](/felt-style-language/examples.md).

We support multiple types of interpolators: Step functions, linear, exponential and cubic bezier to enable your map looking like you want at each zoom level. See the [*Interpolators*](/felt-style-language/zoom-based-styling/interpolators.md) page.

An example of a layer changing feature colors depending on the zoom level can be found below

```json
"paint": {
  "color": {"linear": [[14, "red"], [20, "blue"]]},
  ...
}
```

On zoom levels lower than `14`, features of this layer will be rendered in `red` color. On zoom levels higher than `20`, features of this layer will be rendered in `blue` color.

In zooms between `14` and `20`, color will be linearly interpolated between `red` and `blue.`

<figure><img src="/files/KYE31oNHBLvdEHEyVK0P" alt=""><figcaption><p>Features at zoom level 14</p></figcaption></figure>

<figure><img src="/files/nhOrULlZic0a1gJvnzeQ" alt=""><figcaption><p>Features at zoom level 17</p></figcaption></figure>

<figure><img src="/files/EQBMEDSvsUFiPDgWOYO9" alt=""><figcaption><p>Features at zoom level 20</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/felt-style-language/zoom-based-styling.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.
