Mark to big changes explcitly

This commit is contained in:
Pieter Vander Vennet 2021-11-12 18:41:13 +01:00
parent 680e56397d
commit c861842fa0
2 changed files with 7 additions and 2 deletions

View file

@ -263,8 +263,13 @@ export class Changes {
if(count === 0){
return undefined
}
const maxD =maxDistances[i]
let key = `change_within_${maxD}m`
if(maxD === Number.MAX_VALUE){
key = `change_over_${maxDistances[i - 1]}m`
}
return {
key: "change_within_"+maxDistances[i]+"m",
key ,
value: count,
aggregate:true
}