请问问题解决了吗?我也碰到了,开发者工具好好的,手机端就时不显示
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})[代码]求解决方案
2018-08-24