New close icon, fix #58, small tweaks to buurtnatuur quests

This commit is contained in:
Pieter Vander Vennet 2020-07-24 14:46:25 +02:00
parent fac7aec20b
commit 7bbc140f05
18 changed files with 180 additions and 72 deletions

View file

@ -1,9 +1,7 @@
import {LayerDefinition} from "../LayerDefinition";
import {Quests} from "../../Quests";
import {And, Or, Tag} from "../../Logic/TagsFilter";
import {Or, Tag} from "../../Logic/TagsFilter";
import {AccessTag} from "../Questions/AccessTag";
import {OperatorTag} from "../Questions/OperatorTag";
import {TagRenderingOptions} from "../TagRendering";
import {NameQuestion} from "../Questions/NameQuestion";
import {NameInline} from "../Questions/NameInline";
import {DescriptionQuestion} from "../Questions/DescriptionQuestion";
@ -13,8 +11,8 @@ export class Bos extends LayerDefinition {
constructor() {
super();
this.name = "bos";
this.icon = "./assets/tree_white_background.svg";
this.name = "Bos";
this.icon = "";
this.overpassFilter = new Or([
new Tag("natural", "wood"),

View file

@ -12,10 +12,11 @@ export class GhostBike extends LayerDefinition {
this.name = "ghost bike";
this.overpassFilter = new Tag("memorial", "ghost_bike")
this.title = new FixedText("Ghost bike");
this.description = "A <b>ghost bike</b> is a memorial for a cyclist who died in a traffic accident," +
" in the form of a white bicycle placed permanently near the accident location.";
this.elementsToShow = [
new FixedText("A <b>ghost bike</b> is a memorial for a cyclist who died in a traffic accident," +
" in the form of a white bicycle placed permanently near the accident location."),
new FixedText(this.description),
new ImageCarouselWithUploadConstructor(),
new TagRenderingOptions({

View file

@ -12,8 +12,8 @@ export class NatureReserves extends LayerDefinition {
constructor(moreQuests: boolean = false) {
super();
this.name = "natuurgebied";
this.icon = "./assets/tree_white_background.svg";
this.name = "Natuurgebied";
this.icon = "";
this.overpassFilter =
new Or([new Tag("leisure", "nature_reserve"), new Tag("boundary", "protected_area")]);
this.maxAllowedOverlapPercentage = 10;

View file

@ -1,5 +1,4 @@
import {LayerDefinition} from "../LayerDefinition";
import {Quests} from "../../Quests";
import {And, Or, Tag} from "../../Logic/TagsFilter";
import {AccessTag} from "../Questions/AccessTag";
import {OperatorTag} from "../Questions/OperatorTag";
@ -47,8 +46,8 @@ export class Park extends LayerDefinition {
constructor() {
super();
this.name = "park";
this.icon = "";
this.name = "Park";
this.icon = undefined;
this.overpassFilter =
new Or([new Tag("leisure", "park"), new Tag("landuse", "village_green")]);
this.newElementTags = [new Tag("leisure", "park"),

View file

@ -0,0 +1,6 @@
import {LayerDefinition} from "../LayerDefinition";
export class Viewpoint extends LayerDefinition{
}