terrain

Read a terrarium-encoded elevation tile

Returns a Terrarium-encoded Mapzen Terrain PNG for MapLibre raster-dem sources.

When to use: Display hillshading or 3D terrain using the catalog's tile template and zoom range.

When not to use: Use sampleElevation for a single coordinate without decoding a tile.

get/terrain/{z}/{x}/{y}.png

Request

  • Base URL: https://api.mapsource.io
  • URL: https://api.mapsource.io/terrain/{z}/{x}/{y}.png
  • Auth: HTTP bearer

Path parameters

zinteger required

Zoom, 0 to 15.

xinteger required

Tile column.

yinteger required

Tile row, with the .png suffix.

Response

Read a terrarium-encoded elevation tile

string binary required

A terrarium-encoded PNG elevation tile.

Changes

No recorded changes to this operation across all 1 revision of this API.