<map
id="myMap"
style="width: 100%; height: 600px;"
latitude="{{latitude}}"
longitude="{{longitude}}"
show-location
polyline="{{polylines}}"
bindpolylinetap="handlePolylineTap"
scale="16"
></map>
addPolylines() {
const polylines = [{
arrowLine: true,
width: 11,
borderColor: "#17872F",
borderWidth: 3,
color: "#00B85F",
points: [
{
latitude: 34.25789,
longitude: 108.945738
},
{
latitude: 34.25721100000001,
longitude: 108.946958
},
{
latitude: 34.250070000000015,
longitude: 108.94619899999996
},
{
latitude: 34.250873999999996,
longitude: 108.91304399999997
}
]
}]
this.setData({
polylines
})
this.mapCtx.moveToLocation()
},
handlePolylineTap(e) {
console.log(e, 'e')
},
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
同样无效