地图元素未及时更新
已完成上云开发者,您好:
地图元素新增、修改后,通过websocket已推送新增、修改消息,但是未能在pilot上及时更新,需要进入开发平台请求地图元素列表请求后显示。
删除消息能及时响应。
后端接受到http请求后,新增到数据库后会推送给其他的pilot端,通过postman ws监听能收到websocket消息
麻烦指教一下是什么原因呢
{
"biz_code": "map_element_create",
"data": {
"group_id": "e3dea0f5-37f2-4d79-ae58-490af3228222",
"resource": {
"user_name": "安夏",
"type": 2,
"content": {
"geometry": {
"coordinates": [
[
[
118.86815315315562,
32.01675513436035
],
[
118.86814027841501,
32.01749380014637
],
[
118.86725193093287,
32.017544742382384
],
[
118.86752658920017,
32.01691523974871
]
]
],
"type": "Polygon"
},
"type": "Feature",
"properties": {
"color": "#2D8CF0",
"clampToGround": 2
}
}
},
"name": "pilot 10",
"id": "5a073a9a-494e-4423-9744-afcd45ead2bd"
},
"version": "1.0",
"timestamp": 1701415095418
}
{
"biz_code": "map_element_update",
"data": {
"group_id": "e3dea0f5-37f2-4d79-ae58-490af3228222",
"resource": {
"user_name": "安夏",
"type": 2,
"content": {
"geometry": {
"coordinates": [
[
[
118.86784416248832,
32.016467671624795
],
[
118.8674622161833,
32.01547064213106
],
[
118.86862093047347,
32.01566349914566
],
[
118.86841064522298,
32.016467671624795
]
]
],
"type": "Polygon"
},
"type": "Feature",
"properties": {
"color": "#B620E0",
"clampToGround": 2
}
}
},
"name": "pilot 9",
"id": "e60e88e6-afbf-4e6f-9eaf-5d57140740ab"
},
"version": "1.0",
"timestamp": 1701415743773
}
请先登录再写评论。
评论
5 条评论