map使用addGroundOverlay不生效?
使用的基础库:2.14
wxml为
<map name="dongshan" longitude="117.431" latitude="23.7144" style="height:100%;width:100%"></map>
JS为:
this.dongshanmap = wx.createMapContext('dongshan')
this.dongshanmap.addGroundOverlay({
id:1,
src:'/image/2.png',
visible:true,
bounds:{
southwest:{
longitude:117.2841,
latitude:23.5565
},
zIndex:100,
opacity:1,
northeast:{
longitude:117.56,
latitude:23.7726
}
},
success(e){
console.log('dia')
},
fail(e){
console.log('失败')
}
})
最终不显示