|
|
@ -931,7 +931,7 @@ export default { |
|
|
|
|
|
|
|
let pointData = data.map(item => item.data) |
|
|
|
pointData = pointData.reduce((a, b) => a.concat(b), []); |
|
|
|
pointData = pointData.filter(item => item.num > 0) |
|
|
|
pointData = pointData.filter(item => item.num > 0 && !isNaN(item.latitude)&& !isNaN(item.longitude)) |
|
|
|
console.log(pointData, 'pointData') |
|
|
|
numPointMarker1 = new PointLayer({ |
|
|
|
name: 'numPointMarker1', |
|
|
@ -953,9 +953,8 @@ export default { |
|
|
|
numPointMarker2 = new PointLayer({ |
|
|
|
name: 'numPointMarker2', |
|
|
|
zIndex: 21, |
|
|
|
minZoom: 2, |
|
|
|
maxZoom: 19 |
|
|
|
}).source(pointData, { |
|
|
|
}) |
|
|
|
.source(pointData, { |
|
|
|
parser: { |
|
|
|
type: 'json', |
|
|
|
x: 'longitude', |
|
|
|