forked from MapComplete/MapComplete
Themes(school): add invalidValues for conflicting uniform values
This commit is contained in:
parent
a42e1f8161
commit
31312c2dc6
4 changed files with 17 additions and 3 deletions
|
|
@ -268,7 +268,7 @@ export interface QuestionableTagRenderingConfigJson extends TagRenderingConfigJs
|
|||
*/
|
||||
default?: string
|
||||
/**
|
||||
* question: What values of the freeform key should be interpreted as 'unknown'?
|
||||
* question: What tag combintations key should be interpreted as 'unknown'?
|
||||
* For example, if a feature has `shop=yes`, the question 'what type of shop is this?' should still asked
|
||||
* ifunset: The question will be considered answered if any value is set for the key
|
||||
* group: expert
|
||||
|
|
|
|||
|
|
@ -812,6 +812,10 @@ export default class TagRenderingConfig {
|
|||
if (and.and.length === 0) {
|
||||
return undefined
|
||||
}
|
||||
console.log(">>> New properties", TagUtils.asProperties(and, currentProperties), this.invalidValues)
|
||||
if (this.invalidValues?.matchesProperties(TagUtils.asProperties(and, currentProperties))) {
|
||||
return undefined
|
||||
}
|
||||
return and
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue