# Overlays

> Canonical URL: https://docs.mountaya.com/en/apis/tiles/overlays/
> Last updated: 2026-11-27
> Rules for agents: https://docs.mountaya.com/llms.txt#rules-for-agents

The overlay catalog, the overlays your key may draw, the specification and tile endpoints, and the forecast time parameter.

Overlays add shaded relief, weather, slope steepness, and snow on top of any map. Each one has a slug you put in its specification and tile URLs.

## Find the overlays your key may draw

The layer catalog, `GET /v1/tile-layers`, lists only the overlays your organization may draw. The samples read a publishable key with the `tiles` scope from `MOUNTAYA_PUBLISHABLE_KEY`.

**cURL**

```bash
curl -s https://tiles.mountaya.com/v1/tile-layers \
  -H "X-API-Key: $MOUNTAYA_PUBLISHABLE_KEY" | jq '[.data.overlays[].children[].slug]'
```

**TypeScript**

```typescript
import { Mountaya } from "@mountaya/client";

const mountaya = new Mountaya({
  credential: { publishableKey: process.env.MOUNTAYA_PUBLISHABLE_KEY ?? "" },
});

const { data: layers } = await mountaya.tiles.getTileLayers();

console.log(layers.overlays.flatMap((group) => group.children.map((overlay) => overlay.slug)));
```

**Python**

```python
import os
import requests

layers = requests.get(
    "https://tiles.mountaya.com/v1/tile-layers",
    headers={"X-API-Key": os.environ["MOUNTAYA_PUBLISHABLE_KEY"]},
    timeout=10,
).json()["data"]

print([overlay["slug"] for group in layers["overlays"] for overlay in group["children"]])
```

**Response**

```json
[
  "pois",
  "hillshade"
]
```

This organization may draw two overlays. Every overlay Mountaya serves is in the catalog below.

| Overlay | Group | Description |
| --- | --- | --- |
| `pois` | Terrain enrichment | Points of interest (huts, peaks, passes, parking, water) rendered as vector features. |
| `hillshade` | Terrain enrichment | Shaded-relief hillshade derived from the digital elevation model. |
| `temperature-actual` | Weather | Forecast air temperature. |
| `temperature-perceived` | Weather | Forecast perceived ("feels-like") temperature. |
| `temperature-soil` | Weather | Forecast soil-surface temperature. |
| `visibility` | Weather | Forecast horizontal visibility. |
| `humidity` | Weather | Forecast relative humidity. |
| `wind` | Weather | Forecast wind speed and direction. |
| `steepness` | Surface | Slope steepness classification from 25° to 45°+. |
| `aspectslope` | Surface | Combined slope aspect and steepness shading. |
| `snowdepth` | Snow | Modelled snow depth on the ground. |
| `snowfall-daily` | Snow | Forecast daily snowfall accumulation. |
| `snowfall-hourly` | Snow | Forecast hourly snowfall accumulation. |

Weather and snow overlays accept a `timestamp` query parameter to select a forecast step; static overlays (`pois`, `hillshade`, `steepness`, `aspectslope`) ignore it.

## The allowlist and the time control

Mountaya sets two rules for your organization, as your agreement states:

- **The overlay allowlist** names the overlays your keys may draw. It starts empty, so every overlay answers `403` until Mountaya lists it.
- **The overlay time control** lets weather and snow overlays show the past or the forecast. Without it, those overlays show the present only.

Share links follow the same two rules.

- The allowlist is the organization's `with_overlays` safety rule. An overlay whose slug it does not list is `403` (`FORBIDDEN`, message "Overlay is not allowed") under a key or a share token, on its specification and its tiles alike. It starts empty on a new organization, which admits no overlay, until Mountaya lists slugs, or `*` for all of them, as the agreement states. An overlay that exists but is not allowed is `403`, never `404`.
- `GET /v1/tile-layers` under a key or a share token lists only the overlays the allowlist admits, so a picker built from it offers only overlays this API draws, and a group left with none is dropped.
- The time control is the `with_overlays_control` safety rule. It governs the time cursor alone. Without it, a tile of an overlay whose `capabilities.server.timestamp` is true (the weather and snow overlays) asked for an instant more than 15 minutes from now, in either direction, is `403`, so a map shows the present state only and cannot browse history or forecast. An overlay that does not change with time is drawn whatever instant is sent. The time control never hides an overlay the allowlist admits.
- Requests from Mountaya's own web application are held to no time control.
- Each catalog overlay carries `capabilities.client.timestamp` and `capabilities.server.timestamp`. `server.timestamp` true means the tiles change with `timestamp` (weather and snow). `client.timestamp` true means the client is expected to restyle data it already holds when the moment changes (hillshade carries it, for its light angle), while the tiles do not change.

## Fetch an overlay's specification

Before you draw an overlay, fetch its specification. It lists the sources and layers to add to your map, with their style already set.

```text
GET https://tiles.mountaya.com/v1/overlays/{overlay}/specification
```

The [quickstart](https://docs.mountaya.com/en/apis/tiles/quickstart.md) fetches the `hillshade` specification and draws it on a map.

- `GET /v1/overlays/{overlay}/specification` answers `{"data": {"sources": [...]}}`. `{overlay}` is a catalog slug: lowercase letters, digits and single hyphens, 1 to 64 characters.
- Each source: `id` (opaque string, register it with `map.addSource()`), `type` (`vector` for weather, snow and POIs; `raster` for the terrain analyses such as `steepness` and `aspectslope`; `raster-dem` for elevation, which `hillshade` draws from), `size` (256 or 512, raster and raster-dem only, for `tileSize`), `tiles` (`{z}/{x}/{y}` templates with no credential), `zoom_min` and `zoom_max` (where a map should request the source's tiles), `attribution` (HTML to display), and `layers`.
- Each layer: `id` (opaque), `key` (a concept slug that may repeat across layers of one overlay; the empty string means none), `type` (`raster`, `hillshade`, `fill`, `line`, `circle`, `symbol`), `source`, `source_layer` (MapLibre's `source-layer`, vector sources only), `zoom_min`, `zoom_max`, `paint` and `layout` (each possibly null), an optional `filter` to pass to `addLayer`, and an optional `legend` (`locales`, per language, null where missing).
- The templates carry no credential: append `publishable_key` (and `session_token` where the organization requires one) to each before a map fetches it. A template carries the `organization_id` the specification was asked for with, when one was sent, as its own query string, so join a credential with `&` when the template has a `?`.
- Every overlay layer starts at zoom 7; the ceiling is 18 for the weather overlays, 14 for hillshade, and 22 for the terrain analyses and POIs. The sources of the terrain analyses stop at 14 and that of the POIs at 15, and a map overzooms their tiles past it. A specification served to a publishable key reports every range already narrowed to the organization's zoom-bounds safety rule: a layer outside the bounds is left out, and a source with no layer left is dropped.
- A specification is never recorded as usage; it counts toward the per-minute limits as any request does. See the [Tile API reference](https://docs.mountaya.com/en/apis/tiles/reference.md) for the full schema.

## Ask for a forecast hour

Weather and snow change hour by hour. Add `timestamp` to their tile URLs, beside your key, to pick the hour to draw:

```text
https://tiles.mountaya.com/v1/overlays/temperature-actual/{z}/{x}/{y}?timestamp=2026-06-03T14:00:00Z&publishable_key=pk_your_publishable_key
```

Leave it out to draw the current hour. `pois`, `hillshade`, `steepness` and `aspectslope` do not change with time.

> **Refresh tiles when the time changes**
>
> Another hour is another set of tiles. When your time selector moves, update the source's tile URLs or add the source again.

- Tile endpoint: `GET /v1/overlays/{overlay}/{z}/{x}/{y}`, consumed as a URL template from the specification rather than called directly. `z` is 0 to 22 structurally; `x` and `y` are 0 to 2^z - 1, otherwise `400` naming the parameter. A publishable-key request for a tile outside the organization's zoom bounds or geographic boundaries is `400`.
- Vector overlays (weather, snow, POIs) answer a Mapbox Vector Tile (`application/x-protobuf`); raster overlays (hillshade, slope steepness, aspect/slope) answer WebP or PNG, as `Content-Type` says. A square with no upstream tile is a zero-length vector tile for a vector overlay, and a `404` for a raster one, where a renderer draws the parent tile.
- `timestamp`: an RFC 3339 instant, for example `2026-06-03T14:00:00Z`. When absent it is now. The accepted window is 3 days into the past to 6 days into the future, measured when the request arrives; a malformed value or one outside the window is `400` naming `timestamp` on every overlay, static ones included. The tile is drawn for that instant rounded down to the hour, in UTC.
- On a time-varying overlay, an instant more than 15 minutes from now, either way, is `403` under a key or a share token unless the organization's time control allows it. The comparison uses the instant sent, before rounding.
- The tile coordinates, the `timestamp` and, under a key, the zoom bounds and geographic boundaries are checked before the slug, so a request failing one of them is `400` even when the slug names no overlay. No overlay under the slug is `404`.
- `Cache-Control: public, max-age=300` on a publishable-key request; every response varies on `Origin`, `X-API-Key`, `X-Session-Token` and `X-Share-Token`.
- The overlay groups: terrain enrichment (`pois`, `hillshade`), weather (`temperature-actual`, `temperature-perceived`, `temperature-soil`, `visibility`, `humidity`, `wind`), slope analyses (`steepness`, `aspectslope`), and snow (`snowdepth`, `snowfall-daily`, `snowfall-hourly`).
- Overlays have no draft and no owner: every credential that reaches an overlay draws the same one. The `surface` parameter of your own content's tiles does not apply here. See [your content as tiles](https://docs.mountaya.com/en/apis/tiles/your-content.md).

## Next steps

- [Quickstart](https://docs.mountaya.com/en/apis/tiles/quickstart.md): Draw hillshade on a MapLibre map.
- [Your content](https://docs.mountaya.com/en/apis/tiles/your-content.md): Your itineraries, collections, and zones as tiles.
- [Integration](https://docs.mountaya.com/en/apis/tiles/integration.md): Mapbox, MapTiler, and deck.gl.
