forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
92352ed274
commit
535e36a006
68 changed files with 2734 additions and 382 deletions
|
|
@ -497,7 +497,10 @@ export default class SimpleMetaTaggers {
|
|||
continue
|
||||
}
|
||||
const value = feature.properties[key]
|
||||
const denom: [string, Denomination] = unit.findDenomination(value, () => feature.properties["_country"])
|
||||
const denom: [string, Denomination] = unit.findDenomination(
|
||||
value,
|
||||
() => feature.properties["_country"]
|
||||
)
|
||||
if (denom === undefined) {
|
||||
// no valid value found
|
||||
break
|
||||
|
|
@ -515,7 +518,12 @@ export default class SimpleMetaTaggers {
|
|||
if (canonical === value) {
|
||||
break
|
||||
}
|
||||
console.log("Rewritten ", key, ` from '${value}' into '${canonical}' due to denomination`, denomination)
|
||||
console.log(
|
||||
"Rewritten ",
|
||||
key,
|
||||
` from '${value}' into '${canonical}' due to denomination`,
|
||||
denomination
|
||||
)
|
||||
if (canonical === undefined && !unit.eraseInvalid) {
|
||||
break
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue