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){ if(count === 0){
return undefined 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 { return {
key: "change_within_"+maxDistances[i]+"m", key ,
value: count, value: count,
aggregate:true aggregate:true
} }

View file

@ -51,7 +51,7 @@ export default class Constants {
* If a user makes multiple changes, all these distances are put into multiple bins, depending on this distance. * If a user makes multiple changes, all these distances are put into multiple bins, depending on this distance.
* For every bin, the totals are uploaded as metadata * For every bin, the totals are uploaded as metadata
*/ */
static distanceToChangeObjectBins = [25,50,100,500,1000,5000] static distanceToChangeObjectBins = [25,50,100,500,1000,5000, Number.MAX_VALUE]
private static isRetina(): boolean { private static isRetina(): boolean {
if (Utils.runningFromConsole) { if (Utils.runningFromConsole) {