地图动态添加标注,执行完无任何输出
let mapCtx = wx.createMapContext('warnMap')
mapCtx.addMarkers({
markers: dataArr,
clear: false,
complete(res) {
console.log('clusterCreate addMarkers', res)
},
fail(res){
console.log(res)
}
})