消息发布
Message mapElementCreate
创建地图元素
Payload
Name | Type | Description | Value | Constraints | Notes |
---|---|---|---|---|---|
(root) | object | - | - | - | additional properties are allowed |
biz_code | string | 消息业务码 | - | - | - |
version | string | 消息版本 | - | - | - |
timestamp | integer | 消息发送时间(毫秒) | - | - | - |
data | object | - | - | - | additional properties are allowed |
data.id | string | 元素id | - | - | - |
data.group_id | string | 元素组id | - | - | - |
data.name | string | 元素名称 | - | - | - |
data.resource | object | - | - | - | additional properties are allowed |
data.resource.user_name | string | 用户名称 | - | - | - |
data.resource.content | object | 资源内容对象 | - | - | additional properties are allowed |
data.resource.type | integer | 资源类型 | - | - | - |
Examples of payload (generated)
{
"bizId": "f54d8280-14bc-4814-b62d-b5868eea3d91",
"biz_code": "map_element_create",
"data": {
"create_time": 1718195686332,
"description": "",
"group_id": "e3dea0f5-37f2-4d79-ae58-490af3228060",
"id": "b5562b60-5186-4827-b396-05edd473a25f",
"name": "P.12.203442",
"obj_type": 0,
"oper_type": 0,
"resource": {
"content": {
"geometry": {
"type": "Point",
"coordinates": [
113.99746534,
22.59594058,
0
]
},
"properties": {
"clampToGround": true,
"color": "#03FEF4"
},
"type": "Feature"
},
"type": 0,
"user_name": "R21258"
},
"role": 0,
"space": 0,
"update_time": 1718195686332
},
"devSn": "",
"timestamp": 1718195686342,
"version": "1.0"
}
Message mapElementDelete
删除地图元素
Payload
Name | Type | Description | Value | Constraints | Notes |
---|---|---|---|---|---|
(root) | object | - | - | - | additional properties are allowed |
biz_code | string | 消息业务码 | - | - | - |
version | string | 消息版本 | - | - | - |
timestamp | integer | 消息发送时间(毫秒) | - | - | - |
data | object | - | - | - | additional properties are allowed |
data.id | string | 元素id | - | - | - |
data.group_id | string | 元素组id | - | - | - |
Examples of payload (generated)
{
"bizId": "c97cce69-6263-43d3-9be7-c3bd64529b58",
"biz_code": "map_element_delete",
"data": {
"group_id": "e3dea0f5-37f2-4d79-ae58-490af3228060",
"id": "7b2be4ea-fb26-428a-ad20-1d6afdfcfa26"
},
"devSn": "",
"timestamp": 1718195963451,
"version": "1.0"
}
Message mapElementUpdate
更新地图元素
Payload
Name | Type | Description | Value | Constraints | Notes |
---|---|---|---|---|---|
(root) | object | - | - | - | additional properties are allowed |
biz_code | string | 消息业务码 | - | - | - |
version | string | 消息版本 | - | - | - |
timestamp | integer | 消息发送时间(毫秒) | - | - | - |
data | object | - | - | - | additional properties are allowed |
data.id | string | 元素id | - | - | - |
data.group_id | string | 元素组id | - | - | - |
data.name | string | 元素名称 | - | - | - |
data.resource | object | 资源对象 | - | - | additional properties are allowed |
data.resource.user_name | string | 用户名称 | - | - | - |
data.resource.content | object | 资源内容对象 | - | - | additional properties are allowed |
data.resource.type | integer | 资源类型 | - | - | - |
Examples of payload (generated)
{
"bizId": "adbf4d5b-18c5-4059-8b68-09d5cbb956c7",
"biz_code": "map_element_update",
"data": {
"create_time": 1718195686332,
"group_id": "e3dea0f5-37f2-4d79-ae58-490af3228060",
"id": "b5562b60-5186-4827-b396-05edd473a25f",
"name": "P.12.203442",
"resource": {
"content": {
"geometry": {
"type": "Point",
"coordinates": [
113.99746534,
22.59594058,
null
]
},
"properties": {
"clampToGround": false,
"color": "#03FEF4"
},
"type": "Feature"
},
"type": 0,
"user_name": ""
},
"update_time": 1718196007738
},
"devSn": "",
"msgId": 191648888771186688,
"timestamp": 1718196007747,
"version": "1.0"
}
Message mapGroupRefresh
刷新地图元素组
Payload
Name | Type | Description | Value | Constraints | Notes |
---|---|---|---|---|---|
(root) | object | - | - | - | additional properties are allowed |
biz_code | string | 消息业务码 | - | - | - |
version | string | 消息版本 | - | - | - |
timestamp | integer | 消息发送时间(毫秒) | - | - | - |
data | object | - | - | - | additional properties are allowed |
data.ids | array[string] | - | - | - | - |
data.ids (single item) | string | 元素组id | - | - | - |
Examples of payload (generated)
{
"biz_code": "map_group_refresh",
"version": "1.0",
"timestamp": 146052438362,
"data": {
"ids": [
"string"
]
}
}