MapScale Docs
← MapScale API
GET/tiles/v1/terrain/{z}/{x}/{yFile}

GET /tiles/v1/terrain/{z}/{x}/{yFile}

Vector tiles for interactive MapLibre maps.

Sends this request to the live API and shows the real response.

Parameters

Equivalent request
curl \
  -H "X-MapScale-Key: $MAPSCALE_API_KEY" \
  "https://api.mapscale.io/tiles/v1/terrain/10/817/479.mvt"
Response
Default response
{
  "status": "200",
  "contentType": "image/png",
  "description": "A 256 px Terrarium-encoded elevation tile (metres = R*256 + G + B/256 - 32768), Copernicus DEM GLO-30. Pre-rendered for z0-12; overzoom beyond that on the client."
}

Responses

200A 256 px Terrarium-encoded elevation tile (metres = R*256 + G + B/256 - 32768), Copernicus DEM GLO-30. Pre-rendered for z0-12; overzoom beyond that on the client.image/png
400Invalid tile path.application/json
401mapscale/effect-api/UnauthorizedFailureapplication/json
403mapscale/effect-api/ForbiddenFailureapplication/json
404Tile outside the served area.application/json
429mapscale/effect-api/RateLimitedFailureapplication/json
500mapscale/effect-api/MiddlewareInternalFailureapplication/json
502Terrain archive read failed.application/json
503Terrain archive is not configured. | mapscale/effect-api/UpstreamUnavailableFailureapplication/json

On this page

Analytics settings