Full code cleanup

This commit is contained in:
Pieter Vander Vennet 2021-11-07 16:34:51 +01:00
parent 8e6ee8c87f
commit bd21212eba
246 changed files with 19418 additions and 11729 deletions

View file

@ -64,7 +64,7 @@ export class ExtraFunction {
},
(params, feat) => {
return (...layerIds: string[]) => {
const result : {feat:any, overlap: number}[]= []
const result: { feat: any, overlap: number }[] = []
const bbox = BBox.get(feat)
@ -80,9 +80,9 @@ export class ExtraFunction {
result.push(...GeoOperations.calculateOverlap(feat, otherLayer));
}
}
result.sort((a, b) => b.overlap - a.overlap)
return result;
}
}
@ -181,7 +181,7 @@ export class ExtraFunction {
}
try {
const parsed = JSON.parse(value)
if(parsed === null){
if (parsed === null) {
return undefined;
}
return parsed;