heh = {
const grid = api.grid
for (var n in layers){
if (layers[n].id == "test"){
const tableJSON = JSON.parse(JSON.stringify(layers[n].source.data.features))
for (var cell in grid){
const type = grid[cell][0];
const rotation = grid[cell][1];
tableJSON[cell].properties.type = type;
tableJSON[cell].properties.rotation = rotation;
}
return tableJSON
}
}
}