10.create
Create Map Elements
POST /map/api/v1/workspaces/{workspace_id}/element-groups/{group_id}/elements
Parameters
group_id
path
string
true
element group id
workspace_id
path
string
true
workspace id
x-auth-token
header
string
true
access token
Responses
Example responses
{
"code":0
"data":{
"id":"94c51c50-f111-45e8-ac8c-4f96c93ced44"
},
"message": "success"
}
Schemas
map.ElementCreateInput
{
"id": "string",
"name": "string",
"resource": {
"content": {
"geometry": {
"coordinates": [
null
],
"type": "text"
},
"properties": {
"clampToGround": true,
"color": "string"
},
"type": "text"
},
"type": 0
}
}
Properties
id
string
true
none
element id
name
string
true
none
element name
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
map.SwagUUIDResp
{
"code": 0,
"data": {
"id": "string"
},
"message": "string"
}
Properties
map.UUIDResp
{
"id": "string"
}
Properties
id
string
true
none
element id
Last updated