forked from MapComplete/MapComplete
Themes(toilets): add an allowed range to some freeform inputs, allow to specify 'units' in the freeform, add the possibility to convert units
This commit is contained in:
parent
e71a80732e
commit
1e0ac3febf
16 changed files with 270 additions and 103 deletions
|
@ -962,6 +962,7 @@ class MoveUnitConfigs extends DesugaringStep<LayerConfigJson> {
|
|||
json.units.push({
|
||||
[qtr.freeform.key]: unitConfig
|
||||
})
|
||||
// Note: we do not delete the config - this way, if the tagRendering is imported in another layer, the unit comes along
|
||||
}
|
||||
return json
|
||||
}
|
||||
|
@ -1052,6 +1053,7 @@ export class PrepareLayer extends Fuse<LayerConfigJson> {
|
|||
),
|
||||
new AddFiltersFromTagRenderings(),
|
||||
new ExpandFilter(state),
|
||||
new MoveUnitConfigs(),
|
||||
new PruneFilters()
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue