报错原因没有传经纬度
src\views\integratedGrid\peoplesEcho\index.vue
this.textMap = new AMap.Text({
text: data.deptName,
anchor: "right", // 设置文本标记锚点
draggable: true,
cursor: "pointer",
angle: 5,
zIndex: -1,
style: {
padding: "0",
"background-color": "rgba(0,0,0,0)",
"border-width": 0,
"text-align": "center",
"font-size": "12px",
color: "white",
},
position: [data.longitude, data.latitude],
});
解决步骤

发现是a b取值有问题

打断点(找出a b的属性)

在堆中找a b值传递关系,发现他们是坐标

