|
|
|
@ -23,6 +23,7 @@ for (let idx = min; idx < max; idx++) {
|
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
const CITY = wx.getStorageSync('city') |
|
|
|
|
let start; |
|
|
|
|
|
|
|
|
|
Page({ |
|
|
|
|
/** |
|
|
|
@ -181,7 +182,6 @@ Page({
|
|
|
|
|
landListedId: landListedId, |
|
|
|
|
}, true).then(res => { |
|
|
|
|
if (res && res.data && res.data.length > 0) { |
|
|
|
|
this.setWKT1(res, 3); |
|
|
|
|
if (res.data[0].centerPoint) { |
|
|
|
|
let centerPoint = res.data[0].centerPoint; |
|
|
|
|
let point = WKT.parse(centerPoint); |
|
|
|
@ -865,7 +865,12 @@ Page({
|
|
|
|
|
that.setWKT(data, id); |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
bindupdated(e) { |
|
|
|
|
if (start) { |
|
|
|
|
let time = (new Date().getTime() - start) / 1000 |
|
|
|
|
console.log("渲染耗时====》" + time); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 地块数据解析
|
|
|
|
|
setWKT(data, id) { |
|
|
|
|
let { |
|
|
|
@ -911,9 +916,16 @@ Page({
|
|
|
|
|
} |
|
|
|
|
return polygon |
|
|
|
|
}); |
|
|
|
|
let length = newPolygons.map(item => { |
|
|
|
|
return item.points.length |
|
|
|
|
}).reduce((a, b) => { |
|
|
|
|
return a + b; |
|
|
|
|
}) |
|
|
|
|
console.log(length); |
|
|
|
|
this.setData({ |
|
|
|
|
polygons: polygons.concat(newPolygons) |
|
|
|
|
}) |
|
|
|
|
start = new Date().getTime(); |
|
|
|
|
}, |
|
|
|
|
//复制了一份,因为参数问题
|
|
|
|
|
setWKT1(data, id) { |
|
|
|
|