forked from MapComplete/MapComplete
Mark to big changes explcitly
This commit is contained in:
parent
680e56397d
commit
c861842fa0
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue