MapContext.addGroundOverlay调用失败,类型错误?
mapContext = wx.createMapContext("map")
mapContext.addGroundOverlay({
id: '1',
src: './../../img/border.png',
bounds: {
southwest: { longitude: 116.46, latitude: 39.92 },
northeast: { longitude: 116.46005, latitude: 39.92005 }
},
success() {
console.log("success")
},
fail(res) {
console.log("fail")
console.log(res)
},
complete() {
console.log("complete")
}
})
[图片] 官方文档描述是类型是string [图片] ts的声明文件也是string类型 [图片] 因为用的是ts,直接改成number类型会报错,这个怎么解决。