You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
368 B
23 lines
368 B
const fs = require('fs');
|
|
|
|
mapData=[]
|
|
|
|
for (file of ["area0.json",
|
|
"area1.json",
|
|
"area2.json",
|
|
"area3.json",
|
|
"area4.json",
|
|
"area5.json",
|
|
"area6.json",
|
|
"area7.json",
|
|
"area8.json",
|
|
"area9.json",
|
|
"area11.json"]) {
|
|
mapData=[...mapData,JSON.parse(fs.readFileSync(file))]
|
|
}
|
|
|
|
for (data of mapData){
|
|
for (layer of data.layers) {
|
|
console.log(layer.data)
|
|
}
|
|
} |