微信小程序 map组件 markers 的lable属性点击有问题
点击lable 会弹出 callout 的气泡窗口 而且一个marker 会弹出两个相同的callout 而且点地图空白的地方无法关闭掉callout
var marker= {
id: num,
iconPath: ‘/image/location.png’,
latitude: res.data.adminMap[i].A_B_WGS84,
longitude: res.data.adminMap[i].A_L_WGS84,
title: res.data.adminMap[i].car_no,
width: 40,
height: 35,
anchor: { x: .5, y: 1 } ,
label: {
content: res.data.adminMap[i].car_no + “(车队)”,
color: ‘#fc4954’,
fontSize: 16,
textAlign: ‘left’,
x:-50
},
callout: {
content: content,
color: “#000000”,
fontSize: “16”,
borderRadius: “10”,
bgColor: “#ffffff”,
padding: “10”,
display: ‘BYCLICK’
}
}