forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
612e71a4b6
commit
511d20eb34
245 changed files with 43884 additions and 8661 deletions
|
@ -879,11 +879,14 @@ export class ValidateLayer extends Conversion<
|
|||
}
|
||||
|
||||
if (typeof json.allowMove === "object") {
|
||||
|
||||
if (!(json.allowMove.enableRelocation || json.allowMove.enableImproveAccuracy)) {
|
||||
context.warn("MoveConfig: At least one default move reason should be allowed (at " + context + "); both 'enableImproveAccuracy and enableRelocation are falsy. If you don't want to allow moving points, set `allowMove: false` instead. Full config is: " + JSON.stringify(json.allowMove))
|
||||
context.warn(
|
||||
"MoveConfig: At least one default move reason should be allowed (at " +
|
||||
context +
|
||||
"); both 'enableImproveAccuracy and enableRelocation are falsy. If you don't want to allow moving points, set `allowMove: false` instead. Full config is: " +
|
||||
JSON.stringify(json.allowMove)
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
return { raw: json, parsed: layerConfig }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue