- 当前 Bug 的表现(可附上截图)
- 预期表现
能够添加一个点,多边形区域重新绘制并显示
- 复现路径
- 提供一个最简复现 Demo
polygonsList: [
{
points: [],
strokeWidth: 5,
strokeColor: '#FF0000DD',
fillColor: '#FF000000',
zIndex: 10,
}
],
poiClick: function(e) {
console.log("poi>>>", e);
var pointList = this.data.polygonsList[0].points;
pointList.push({
latitude: e.detail.latitude,
longitude: e.detail.longitude
});
var keyTag1 = "polygonsList[0].points";
this.setData({
keyTag1: pointList,
});
console.log("处理完成>>", this.data.polygonsList);
},
本文网址:http://www.91bianli.com/weixinxiaochengxu/3145.html