30.obtain
Get Map Elements
GET /map/api/v1/workspaces/{workspace_id}/element-groups
Parameters
group_id
query
string
false
element group id
is_distributed
query
boolean
false
element group distributed status (default value: true)
workspace_id
path
string
true
workspace id
x-auth-token
header
string
true
access token
Responses
Example responses
{
"code":0,
"message":"success",
"data":[
{
"id":"d275c4e1-d864-4736-8b5d-5f5882ee9bdd",
"type":1,
"name":"string",
"is_lock":false,
"create_time":1637158501230,
"elements":[
{
"id":"6d5da7b4-ac39-42bf-9580-4c8a94c11989",
"name":"string",
"create_time":1637158501230,
"update_time":1637158501230,
"resource":{
"type":0,
"user_name":"name",
"content":{
"type":"Feature",
"properties":{
"color":"#0091FF",
"clampToGround":false
},
"geometry":{
"type":"Point",
"coordinates":[
-112.49344909640939,
48.18734850103778,
40.2
]
}
}
}
},
{
"id":"6d5da7b4-ac39-42bf-9580-4c8a94c11988",
"name":"string",
"create_time":1637158501230,
"update_time":1637158501230,
"resource":{
"type":0,
"user_name":"string",
"content":{
"type":"Feature",
"properties":{
"color":"#0091FF",
"clampToGround":false
},
"geometry":{
"type":"LineString",
"coordinates":[
[
-112.49344909640939,
48.18734850103778
],
[
-104.47267952618783,
46.60029335386577
],
[
-109.20285386177949,
42.63945392538244
],
[
-113.51847222524307,
43.059268439796575
]
]
}
}
}
},
{
"id":"6d5da7b4-ac39-42bf-9580-4c8a94c11987",
"name":"string",
"create_time":1637158501230,
"update_time":1637158501230,
"resource":{
"type":0,
"user_name":"string",
"content":{
"type":"Feature",
"properties":{
"color":"#0091FF",
"clampToGround":false
},
"geometry":{
"type":"Polygon",
"coordinates":[
[
[
-112.49344909640939,
48.18734850103778
],
[
-104.47267952618783,
46.60029335386577
],
[
-109.20285386177949,
42.63945392538244
],
[
-113.51847222524307,
43.059268439796575
]
]
]
}
}
}
}
]
}
]
}Schemas
map.SwagTree
{
"code": 0,
"data": [
{
"create_time": 0,
"elements": [
{
"create_time": 0,
"id": "string",
"name": "string",
"resource": {
"content": {
"geometry": {
"coordinates": [
null
],
"type": "text"
},
"properties": {
"clampToGround": true,
"color": "string"
},
"type": "text"
},
"type": 0
},
"update_time": 0
}
],
"id": "string",
"is_lock": true,
"name": "string",
"type": 0
}
],
"message": "string"
}
Properties
code
integer
false
none
error code
message
string
false
none
error description
map.ElementGroupOutput
{
"create_time": 0,
"elements": [
{
"create_time": 0,
"id": "string",
"name": "string",
"resource": {
"content": {
"geometry": {
"coordinates": [
null
],
"type": "text"
},
"properties": {
"clampToGround": true,
"color": "string"
},
"type": "text"
},
"type": 0
},
"update_time": 0
}
],
"id": "string",
"is_lock": true,
"name": "string",
"type": 0
}
Properties
create_time
integer
false
none
element group create time (millisecond)
id
string
false
none
element group id
is_lock
boolean
false
none
Whether to lock (if locked, the elements under this element group cannot be deleted and modified)
name
string
false
none
element group name
type
integer
false
none
Element Group Types: * 0 - Custom Element Group * 1 - Default Element Group * 2 - App Shared Element Group (when type=2, it refers to the App Shared Element Group. By default, Pilot will add maps to this element group)
map.ElementItem
{
"create_time": 0,
"id": "string",
"name": "string",
"resource": {
"content": {
"geometry": {
"coordinates": [
null
],
"type": "text"
},
"properties": {
"clampToGround": true,
"color": "string"
},
"type": "text"
},
"type": 0
},
"update_time": 0
}
Properties
create_time
integer
false
none
element create time (millisecond)
id
string
false
none
element id
name
string
false
none
element name
update_time
integer
false
none
element update time (millisecond)
map.ResourceItem
{
"content": {
"geometry": {
"coordinates": [
null
],
"type": "text"
},
"properties": {
"clampToGround": true,
"color": "string"
},
"type": "text"
},
"type": 0
}
Properties
type
integer
false
none
resource type * 0 - pin point * 1 - line * 2 - polygon
map.Content
{
"geometry": {
"coordinates": [
null
],
"type": "text"
},
"properties": {
"clampToGround": true,
"color": "string"
},
"type": "text"
}
Properties
geometry
object
false
none
geojson attribute
» coordinates
[any]
false
none
geojson attribute
» type
string
false
none
geojson attribute
properties
object
false
none
geojson attribute
» clampToGround
boolean
false
none
whether it is on the ground
» color
string
false
none
supported colors * BLUE: 0x2D8CF0 * GREEN - 0x19BE6B * YELLOW - 0xFFBB00 * ORANGE - 0xB620E0 * RED - 0xE23C39 * PURPLE - 0x212121
type
string
false
none
geojson attribute
Last updated