使用setLocMarkerIcon来改变当前点位的icon,都返回成功了,但是地图icon没变?
this.mapCtx = wx.createMapContext('map', this);
this.mapCtx.setLocMarkerIcon({
iconPath: wxapp.globalData.preloadImageInfo,
success: function (r) {
console.log(r)
console.log("成功")
console.log(wxapp.globalData.preloadImageInfo)
console.log(typeof wxapp.globalData.preloadImageInfo)
},
fail: function (err) {
console.log(wxapp.globalData.preloadImageInfo)
console.log("错误")
console.log(err)
}
})