that.mapCtx = wx.createMapContext('map', that)
const southwest = {
// 西南角经纬度
latitude: 34.575779,
longitude: 119.312979,
}
const northeast = {
// 东北角经纬度
latitude: 34.577849,
longitude: 119.309944,
}
that.mapCtx.addGroundOverlay({
id: 1,// 手绘图图层id
src: "https://gch.fxr.asia/map.png",// 手绘图地址
bounds: {
southwest,
northeast
},
zIndex: 1, // 手绘地图层级
})
这个是添加的自定义图片
这个是真机调试时显示的地图
你发的这段代码是没问题的,看看还受其它代码影响么,试试页面只写一个map组件和这段代码有问题么
那就离谱了,换成本地图片呢