wxml:
<map
id="wsMap"
style="width: 100%;height:90vh;"
latitude="{{latitude}}"
longitude="{{longitude}}"
markers="{{markers}}"
controls="{{controls}}"
scale="16"
polyline="{{polyline}}"
show-location
>
js:
let mapCtx = wx.createMapContext('wsMap')
mapCtx.addArc({
id:1,
start:{
longitude:120.036749,//120.041226,
latitude:30.392361//30.389034
},
end:{
longitude: 120.043952,
latitude: 30.384662,
},
pass:{
longitude: 120.041226,
latitude: 30.389034,
},
angle:30,
width:10,
color:'#38c8c8',
success:res=>{
console.log(res);
},
fail:err=>{
console.log(err);
}
})
其他的API我调着都很正常,唯独这个addArc,直接就报错了,我不知道是这个原因不是
真机呢?报错嘛?