diff --git a/Logic/Osm/Changes.ts b/Logic/Osm/Changes.ts index b8cdbcf493..ccbb9e9d94 100644 --- a/Logic/Osm/Changes.ts +++ b/Logic/Osm/Changes.ts @@ -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 } diff --git a/Models/Constants.ts b/Models/Constants.ts index 79a55ca9bf..9347284afc 100644 --- a/Models/Constants.ts +++ b/Models/Constants.ts @@ -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. * 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 { if (Utils.runningFromConsole) {