Get the drawing order of the layers

Returns all the layers of a project in their drawing order.

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

Response

result lists every layer of the project, from the bottom one (drawn first) to the top one, with its id, name, description and elementType.

Locale (locale)

Without locale, the names (and layer descriptions) are returned as objects by locale ({ "en": "...", "fr": "..." }). With locale (en, fr, es), each is a single string in that locale, or in the project's default language when it has no text in that locale. A code that isn't a known language returns 400.

Layers order

The layers of a project are in a single, flat list: the drawing order of the layers on the map. The first layer is drawn at the bottom, under the others (for example a hydrography polygon layer), and the last one on top (for example cities as points).

It is separate from the layer tree (.../layers-groups), which only sets how layers are grouped and listed: moving a layer in the tree doesn't change its drawing order, and the other way around. A new layer is added at the end of the list, so it is drawn on top. Layers that reference a layer of another project have their own place in the list.

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

Query Params
string

ISO 639 language code (en, fr, es): names and descriptions are returned as single strings 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