Overlays
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.
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.
This organization may draw two overlays. Every overlay Mountaya serves is in the catalog below.
Weather and snow overlays accept a timestamp query parameter to select a forecast step; static overlays (pois, hillshade, steepness, aspectslope) ignore it.
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
403until 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.
Before you draw an overlay, fetch its specification. It lists the sources and layers to add to your map, with their style already set.
The quickstart fetches the hillshade specification and draws it on a map.
Weather and snow change hour by hour. Add timestamp to their tile URLs, beside your key, to pick the hour to draw:
Leave it out to draw the current hour. pois, hillshade, steepness and aspectslope do not change with time.