mapContext.fromScreenLocation({
x:0,
y:0,
success: (res)=>{
this.setDate({
markers: [{
latitude: res.latitude,
longitude: res.longitude,
id: 2,
iconPath: '/static/img/map-wd.png',
width: 24,
height: 24
}]
})
}
}}
你好,麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)