|
@ -49,6 +49,7 @@ function partsePluviometer(row) { |
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const description = row["Description"] ? "\n\n" + row["Description"] : ""; |
|
|
displacement += offset; |
|
|
displacement += offset; |
|
|
const i = { |
|
|
const i = { |
|
|
ID: ++ID, |
|
|
ID: ++ID, |
|
@ -58,7 +59,8 @@ function partsePluviometer(row) { |
|
|
longitude: row["Longitude"], |
|
|
longitude: row["Longitude"], |
|
|
}, |
|
|
}, |
|
|
image: custom_assets.pluviometer, |
|
|
image: custom_assets.pluviometer, |
|
|
description: row["Precipitation"] + "mm" + ", " + row["Date"], |
|
|
|
|
|
|
|
|
description: |
|
|
|
|
|
row["Precipitation"] + "mm" + ", " + row["Date"] + description, |
|
|
pictures: row["Images"], |
|
|
pictures: row["Images"], |
|
|
}; |
|
|
}; |
|
|
console.log(i); |
|
|
console.log(i); |
|
@ -123,6 +125,7 @@ function parseRainLevel(row) { |
|
|
"Pancada de chuva", |
|
|
"Pancada de chuva", |
|
|
]; |
|
|
]; |
|
|
const rainIdx = row["RainIdx"]; |
|
|
const rainIdx = row["RainIdx"]; |
|
|
|
|
|
const description = row["Description"] ? row["Description"] : ""; |
|
|
|
|
|
|
|
|
return { |
|
|
return { |
|
|
ID: ++ID, |
|
|
ID: ++ID, |
|
@ -132,7 +135,7 @@ function parseRainLevel(row) { |
|
|
longitude: row["Longitude"] + displacement, |
|
|
longitude: row["Longitude"] + displacement, |
|
|
}, |
|
|
}, |
|
|
image: custom_assets.rainLevel[rainIdx], |
|
|
image: custom_assets.rainLevel[rainIdx], |
|
|
description: rainLevel[rainIdx], |
|
|
|
|
|
|
|
|
description: description, |
|
|
pictures: row["Images"], |
|
|
pictures: row["Images"], |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|