Get a cached vector tile of a project

Returns a vector tile of a project, from the cache. Use it to display a project on a map: the tiles are the same as the data access service's project tiles, but are served from a cache once computed.

Required role: ORG_VIEWER. The organization path parameter must be the organization of the access token, and the current user must have the VIEW permission on the project.

Tile coordinates

⚠️ The URL ends with {x}/{y}/{z}, not the usual {z}/{x}/{y}. In a MapLibre or Mapbox GL source, use a URL template such as https://.../projects/{project}/mvt/{x}/{y}/{z}.

Tiles follow the XYZ (Web Mercator, EPSG:3857) scheme: z from 0 to 22, and x and y from 0 to 2z - 1, y starting at the top (north). Other values return 400.

The access to the project is checked for each request (the answer is kept 30 seconds). When it can't be checked, the request returns 500 and no tile is served.

Response

A Mapbox Vector Tile (application/x-protobuf) with the vector layers of the project that are visible at zoom z (see the data access service's GET .../projects/{project}/mvt/{x}/{y}/{z} for its content). A tile with no layer or no feature is returned with 200 and an empty body.

Cache

A tile is computed once, then served from the cache. The cache is cleared when the project's layers change, when their data is reloaded, or when features are edited (in the area of the change), so the tiles stay up to date. The cache can also be filled in advance with the VTCS:SEED_MVT_CACHE process (process service).

The response has an ETag and a Cache-Control header. Send the ETag back in If-None-Match: when the tile didn't change, the response is 304 with no body. Browsers and map libraries do this automatically.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

Id of your organization (must match the access token)

uuid
required

Id of the project

int32
required

Column of the tile, from 0 to 2^z - 1

int32
required

Row of the tile, from 0 (north) to 2^z - 1

int32
required

Zoom level of the tile, from 0 to 22

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

304

The tile didn't change since the ETag sent in If-None-Match (no body)

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json