Further work on infobox, styling everything, removing clutter

This commit is contained in:
Pieter Vander Vennet 2020-06-27 03:06:51 +02:00
parent 2acd53d150
commit 0b4016b65d
48 changed files with 1283 additions and 454 deletions

View file

@ -58,9 +58,6 @@ export class Bookcases extends LayerDefinition {
new TagMappingOptions({key: "ref", template: "Referentienummer {ref}"}),
new TagMappingOptions({key: "description", template: "Extra beschrijving: <br /> <p>{description}</p>"}),
CommonTagMappings.osmLink
]
;
}

View file

@ -32,14 +32,12 @@ export class Bos extends LayerDefinition {
this.elementsToShow = [
new TagMappingOptions({
key: "name",
template: "<h2>{name}</h2>",
missing: "<h2>Naamloos bos</h2>"
template: "{name}",
missing: "Naamloos bos"
}),
CommonTagMappings.access,
CommonTagMappings.operator,
CommonTagMappings.osmLink
];
}

View file

@ -1,4 +1,5 @@
import {TagMappingOptions} from "../UI/TagMapping";
import {Img} from "../UI/Img";
export class CommonTagMappings {
@ -28,6 +29,8 @@ export class CommonTagMappings {
mapping: {
"node/-1": "<span class='osmlink'>Over enkele momenten sturen we je punt naar OpenStreetMap</span>"
},
template: "<span class='osmlink'><a href='https://osm.org/{id}'> Op OSM</a></span>"
template: "<span class='osmlink'><a href='https://osm.org/{id}' target='_blank'>" +
Img.osmAbstractLogo +
"</a></span>"
})
}

View file

@ -49,7 +49,7 @@ export class KnownSet {
static groen = new KnownSet("groen",
"Buurtnatuur",
[new NatureReserves(), new Park(), new Bos(), new Playground()],
[new NatureReserves(), new Park(), new Bos()],
14,
51.2,
3.2,

View file

@ -3,7 +3,7 @@ import {Quests} from "../Quests";
import {TagMappingOptions} from "../UI/TagMapping";
import L from "leaflet"
import {CommonTagMappings} from "./CommonTagMappings";
import {Tag} from "../Logic/TagsFilter";
import {Or, Tag} from "../Logic/TagsFilter";
export class NatureReserves extends LayerDefinition {
@ -11,7 +11,8 @@ export class NatureReserves extends LayerDefinition {
super();
this.name = "natuurgebied";
this.icon = "./assets/tree_white_background.svg";
this.overpassFilter = new Tag("leisure", "nature_reserve");
this.overpassFilter =
new Or([new Tag("leisure", "nature_reserve"), new Tag("boundary","protected_area")]);
this.removeTouchingElements = true;
this.newElementTags = [new Tag("leisure", "nature_reserve"),
@ -22,12 +23,11 @@ export class NatureReserves extends LayerDefinition {
this.elementsToShow = [
new TagMappingOptions({
key: "name",
template: "<h2>{name}</h2>",
missing: "<h2>Naamloos gebied</h2>"
template: "{name}",
missing: "Naamloos gebied"
}),
CommonTagMappings.access,
CommonTagMappings.operator,
CommonTagMappings.osmLink
];
}

View file

@ -22,15 +22,12 @@ export class Park extends LayerDefinition {
this.elementsToShow = [
new TagMappingOptions({
key: "name",
template: "<h2>{name}</h2>",
missing: "<h2>Naamloos park</h2>"
template: "{name}",
missing: "Naamloos park"
}),
CommonTagMappings.access,
CommonTagMappings.operator,
CommonTagMappings.osmLink,
];
}

View file

@ -82,9 +82,6 @@ export class Toilets extends LayerDefinition{
}
}),
CommonTagMappings.osmLink
];
}