forked from MapComplete/MapComplete
Docs: add 'used in layers'-information for builtingQuestions + various small refactorings
This commit is contained in:
parent
2545982dbd
commit
bc2ea7841f
9 changed files with 83 additions and 47 deletions
|
@ -283,8 +283,7 @@ class ContextRewritingStep<T> extends Conversion<LayerConfigJson, T> {
|
|||
) {
|
||||
super(
|
||||
"ContextRewritingStep",
|
||||
"When validating a layer, the tagRenderings are first expanded. Some builtin tagRendering-calls (e.g. `contact`) will introduce _multiple_ tagRenderings, causing the count to be off. This class rewrites the error messages to fix this",
|
||||
[]
|
||||
"When validating a layer, the tagRenderings are first expanded. Some builtin tagRendering-calls (e.g. `contact`) will introduce _multiple_ tagRenderings, causing the count to be off. This class rewrites the error messages to fix this"
|
||||
)
|
||||
this._state = state
|
||||
this._step = step
|
||||
|
@ -460,7 +459,7 @@ export default class EditLayerState extends EditJsonState<LayerConfigJson> {
|
|||
}
|
||||
const state: DesugaringContext = {
|
||||
tagRenderings: sharedQuestions,
|
||||
sharedLayers: layers,
|
||||
sharedLayers: new Map(layers),
|
||||
tagRenderingOrder: [],
|
||||
}
|
||||
const prepare = this.buildValidation(state)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue