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)
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.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||