forked from MapComplete/MapComplete
Change quest descriptions and orders in order to improve data quality
This commit is contained in:
parent
49cab66a72
commit
6828699a4c
11 changed files with 77 additions and 13 deletions
|
@ -6,6 +6,7 @@ import {OperatorTag} from "../Questions/OperatorTag";
|
|||
import {TagRenderingOptions} from "../TagRendering";
|
||||
import {NameQuestion} from "../Questions/NameQuestion";
|
||||
import {NameInline} from "../Questions/NameInline";
|
||||
import {DescriptionQuestion} from "../Questions/DescriptionQuestion";
|
||||
|
||||
export class Park extends LayerDefinition {
|
||||
|
||||
|
@ -50,7 +51,8 @@ export class Park extends LayerDefinition {
|
|||
this.title = new NameInline("park");
|
||||
this.elementsToShow = [new NameQuestion(),
|
||||
this.accessByDefault,
|
||||
this.operatorByDefault
|
||||
this.operatorByDefault,
|
||||
new DescriptionQuestion("park"),
|
||||
|
||||
];
|
||||
|
||||
|
@ -65,7 +67,7 @@ export class Park extends LayerDefinition {
|
|||
let questionSeverity = 0;
|
||||
for (const qd of self.elementsToShow) {
|
||||
if (qd.IsQuestioning(properties)) {
|
||||
questionSeverity = Math.max(questionSeverity, qd.options.priority ?? 0);
|
||||
questionSeverity = Math.max(questionSeverity, qd.Priority() ?? 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue