forked from MapComplete/MapComplete
Added bike services layer and questions
This commit is contained in:
parent
19614369ba
commit
7e2904d3c0
13 changed files with 188 additions and 108 deletions
25
Customizations/Questions/BikeStationOperator.ts
Normal file
25
Customizations/Questions/BikeStationOperator.ts
Normal file
|
@ -0,0 +1,25 @@
|
|||
import {TagRenderingOptions} from "../TagRendering";
|
||||
import {Tag} from "../../Logic/TagsFilter";
|
||||
|
||||
export default class BikeStationOperator extends TagRenderingOptions {
|
||||
private static options = {
|
||||
priority: 15,
|
||||
question: "Who operates this bike station (name of university, shop, city...)?",
|
||||
freeform: {
|
||||
key: "operator",
|
||||
template: "This bike station is operated by $$$",
|
||||
renderTemplate: "This bike station is operated by {operator}",
|
||||
placeholder: "organisatie"
|
||||
},
|
||||
mappings: [
|
||||
{k: new Tag("operator", "KU Leuven"), txt: "KU Leuven"},
|
||||
{k: new Tag("operator", "Stad Halle"), txt: "Stad Halle"},
|
||||
{k: new Tag("operator", "Saint Gilles - Sint Gillis"), txt: "Saint Gilles - Sint Gillis"},
|
||||
{k: new Tag("operator", "private"), txt: "Beheer door een privépersoon"}
|
||||
]
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super(BikeStationOperator.options);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue