forked from MapComplete/MapComplete
More fixes to studio, move error message to validation step, fix #1710
This commit is contained in:
parent
8b4544db04
commit
21563e4dc2
5 changed files with 49 additions and 22 deletions
|
@ -184,14 +184,6 @@ export default class LayerConfig extends WithContextLoader {
|
|||
snapToLayers,
|
||||
maxSnapDistance: pr.maxSnapDistance ?? 10,
|
||||
}
|
||||
} else if (pr.maxSnapDistance !== undefined) {
|
||||
throw (
|
||||
"Layer " +
|
||||
this.id +
|
||||
" defines a maxSnapDistance, but does not include a `snapToLayer` (at " +
|
||||
context +
|
||||
")"
|
||||
)
|
||||
}
|
||||
|
||||
const config: PresetConfig = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue