2020-07-12 23:19:05 +02:00
|
|
|
import {TagRenderingOptions} from "../TagRendering";
|
2020-07-05 18:59:47 +02:00
|
|
|
import {UIEventSource} from "../../UI/UIEventSource";
|
2020-07-30 10:03:47 +02:00
|
|
|
import {Changes} from "../../Logic/Osm/Changes";
|
2020-07-05 18:59:47 +02:00
|
|
|
import {And, Tag} from "../../Logic/TagsFilter";
|
|
|
|
|
|
|
|
export class AccessTag extends TagRenderingOptions {
|
|
|
|
|
|
|
|
private static options = {
|
2020-07-13 13:17:03 +02:00
|
|
|
priority: 20,
|
2020-07-05 18:59:47 +02:00
|
|
|
question: "Is dit gebied toegankelijk?",
|
|
|
|
freeform: {
|
2020-07-13 12:10:43 +02:00
|
|
|
key: "access:description",
|
2020-07-05 18:59:47 +02:00
|
|
|
template: "Iets anders: $$$",
|
2020-07-13 12:10:43 +02:00
|
|
|
renderTemplate: "De toegankelijkheid van dit gebied is: {access:description}",
|
2020-07-05 18:59:47 +02:00
|
|
|
placeholder: "Specifieer"
|
|
|
|
},
|
|
|
|
mappings: [
|
2020-07-24 14:46:25 +02:00
|
|
|
{k: new And([new Tag("access", "yes"), new Tag("fee", "")]), txt: "Publiek toegankelijk"},
|
|
|
|
{k: new And([new Tag("access", "no"), new Tag("fee", "")]), txt: "Niet toegankelijk"},
|
|
|
|
{k: new And([new Tag("access", "private"), new Tag("fee", "")]), txt: "Niet toegankelijk, want privegebied"},
|
|
|
|
{k: new And([new Tag("access", "permissive"), new Tag("fee", "")]), txt: "Toegankelijk, maar het is privegebied"},
|
|
|
|
{k: new And([new Tag("access", "guided"), new Tag("fee", "")]), txt: "Enkel met gids of op activiteit"},
|
2020-07-05 18:59:47 +02:00
|
|
|
{
|
|
|
|
k: new And([new Tag("access", "yes"),
|
|
|
|
new Tag("fee", "yes")]),
|
2020-07-24 14:46:25 +02:00
|
|
|
txt: "Toegankelijk mits betaling",
|
2020-07-05 18:59:47 +02:00
|
|
|
priority: 10
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super(AccessTag.options);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|