Get the Mapbox sprite index of a project at a scale

Returns the index of the Mapbox sprite of a project: for each image, its position and size in the sprite image.

Required role: ORG_VIEWER, and the current user must have the VIEW permission on the project.

The response is the index itself (no result wrapper): { "<image name>": { "x": ..., "y": ..., "width": ..., "height": ..., "pixelRatio": ... } }.

Scale (scale)

The pixel ratio of the sprite: 1, 2 or 3 ([email protected] for high-density screens). Another value returns 400. Without @{scale}x, the scale is 1.

Locale (locale)

With locale (en, fr, es), the texts (layer names, labels) are in that locale, or in the project's default language when there is no text in that locale. A code that isn't a known language returns 400.

Mapbox / MapLibre

These endpoints serve a project to map clients that read the Mapbox style specification (Mapbox GL JS, MapLibre GL JS, ...). The style document references the sprite (.../mapbox-sprite): the symbols and patterns of the project's styles packed in one PNG image, with a JSON index of their positions.

The URLs in the documents are built from the request (X-Forwarded-Proto, X-Forwarded-Host and X-Forwarded-Port are used when present).

Organization

organization must be the organization of the access token, and the project must belong to it; otherwise the request returns 404.

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

string
required

Pixel ratio of the sprite: 1, 2 or 3

Query Params
string

ISO 639 language code (en, fr, es): texts are in this locale

Responses

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