marker真机不显示
wx.request网络请求的数据,动态添加到marker上不显示
for ( var j = 0, carlen = carList.length; j < carlen; j++) { var markerInfo = { iconPath: "../../images/home_car_icon.png" , id: carList[j].carId, latitude: 30.25961, longitude: 120.13026, width: 50, height: 50, label:{ content: "12" , color: "#000" , } } that.markers.push(markerInfo) } console.log(that.markers) that.setData({mapMarkers: that.markers}) |
求解决方案
2 回复
你好,请提供出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。