function buildPoints() {
let item = mapArray.map( point => {
let maximum = 10000;
return turf.helpers.point(
[
parseFloat(point[18].value),
parseFloat(point[17].value)
],
{
"ID": parseInt(point[0].value),
"1": scale(parseInt(point[2].value)/maximum).hex(),
"2": scale(parseInt(point[3].value)/maximum).hex(),
"3": scale(parseInt(point[4].value)/maximum).hex(),
"4": scale(parseInt(point[5].value)/maximum).hex(),
"5": scale(parseInt(point[6].value)/maximum).hex(),
"6": scale(parseInt(point[7].value)/maximum).hex(),
"7": scale(parseInt(point[8].value)/maximum).hex(),
"8": scale(parseInt(point[9].value)/maximum).hex(),
"9": scale(parseInt(point[10].value)/maximum).hex(),
"10": scale(parseInt(point[11].value)/maximum).hex(),
"11": scale(parseInt(point[12].value)/maximum).hex(),
"12": scale(parseInt(point[13].value)/maximum).hex(),
}
)
})
return item
}