Loads the elements contained in the requested layers of a Gaia map. The response includes the geometries associated with the elements.
boolean
Represents a boolean value that restricts an endpoint to preview mode when set to true.
object
list<GaiaLayerId>
The set of layer IDs to load from a Gaia map.
object
A successful load layers response.
map<GaiaLayerId, GaiaLayer>
A mapping of the requested layer IDs to a Gaia layer. Any invalid layer IDs will be omitted from this field.
1
2
3
4
5
curl -X PUT \
-H "Content-type: application/json" \
-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/gotham/v1/maps/load/ri.gotham-artifact.0-1.gaia-map.a1A2bcD3e45fg6h7ij/layers?preview=true" \
-d '{"layerIds":["exampleLayerId"]}'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"layers": {
"exampleLayerId": {
"id": "exampleLayerId",
"elements": [
{
"id": "exampleElementId",
"parentId": "exampleLayerId",
"features": [
{
"geometry": {
"type": "Point",
"coordinates": [
0,
0
]
},
"style": {
"label": {
"text": "sample-text",
"textRotation": 40.1,
"textColor": "#000000",
"textAlignment": "RIGHT"
}
}
},
{
"geometry": {
"type": "Point",
"coordinates": [
0,
0
]
}
}
]
}
]
}
}
}