Add custom theme for advanced users
This commit is contained in:
parent
004eead4ee
commit
9c42839f01
44 changed files with 635 additions and 326 deletions
|
@ -10,7 +10,7 @@ import FixedText from "../Questions/FixedText";
|
|||
export class Artwork extends LayerDefinition {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
super("artwork");
|
||||
this.name = "artwork";
|
||||
const t = Translations.t.artwork;
|
||||
this.title = t.title;
|
||||
|
|
|
@ -16,7 +16,7 @@ export default class BikeCafes extends LayerDefinition {
|
|||
private readonly to = Translations.t.cyclofix.cafe
|
||||
|
||||
constructor() {
|
||||
super()
|
||||
super("bikecafe")
|
||||
this.name = this.to.name
|
||||
this.icon = "./assets/bike/cafe.svg"
|
||||
this.overpassFilter = new And([
|
||||
|
|
|
@ -20,7 +20,7 @@ export default class BikeOtherShops extends LayerDefinition {
|
|||
private readonly to = Translations.t.cyclofix.nonBikeShop
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
super("bikeOtherShop");
|
||||
this.name = this.to.name
|
||||
this.icon = "./assets/bike/non_bike_repair_shop.svg"
|
||||
this.overpassFilter = new And([
|
||||
|
|
|
@ -15,7 +15,7 @@ export default class BikeParkings extends LayerDefinition {
|
|||
private readonly accessCargoDesignated = new Tag("cargo_bike", "designated");
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
super("bikeparking");
|
||||
this.name = Translations.t.cyclofix.parking.name;
|
||||
this.icon = "./assets/bike/parking.svg";
|
||||
this.overpassFilter = new Tag("amenity", "bicycle_parking");
|
||||
|
|
|
@ -21,7 +21,7 @@ export default class BikeShops extends LayerDefinition {
|
|||
private readonly repairsBikes = new Tag("service:bicycle:repair", "yes")
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
super("bikeshop");
|
||||
this.name = Translations.t.cyclofix.shop.name
|
||||
this.icon = "./assets/bike/repair_shop.svg"
|
||||
this.overpassFilter = new Tag("shop", "bicycle");
|
||||
|
|
|
@ -27,7 +27,7 @@ export default class BikeStations extends LayerDefinition {
|
|||
private readonly to = Translations.t.cyclofix.station
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
super("bikestation");
|
||||
this.name = Translations.t.cyclofix.station.name;
|
||||
this.icon = "./assets/bike/repair_station_pump.svg";
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ export class Birdhide extends LayerDefinition {
|
|||
|
||||
|
||||
constructor() {
|
||||
super({
|
||||
super("birdhide",{
|
||||
name: "vogelkijkplaats",
|
||||
description: "Een plaats om vogels te kijken, zoals een vogelkijkhut of kijkwand",
|
||||
overpassFilter: Birdhide.birdhide,
|
||||
|
|
|
@ -9,7 +9,7 @@ import T from "../../UI/i18n/Translation";
|
|||
export class Bookcases extends LayerDefinition {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
super("bookcases");
|
||||
|
||||
this.name = "boekenkast";
|
||||
this.presets = [{
|
||||
|
|
|
@ -10,7 +10,7 @@ import {ImageCarouselWithUploadConstructor} from "../../UI/Image/ImageCarouselWi
|
|||
export class Bos extends LayerDefinition {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
super("bos");
|
||||
this.name = "Bos";
|
||||
this.icon = "";
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ export class ClimbingTree extends LayerDefinition {
|
|||
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
super("climbingtree");
|
||||
const t = Translations.t.climbingTrees.layer;
|
||||
this.title = new FixedText(t.title);
|
||||
const icon = "assets/walkbybrussels/tree.svg";
|
||||
|
|
|
@ -10,7 +10,7 @@ import Translations from "../../UI/i18n/Translations";
|
|||
export class DrinkingWater extends LayerDefinition {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
super("drinkingwater");
|
||||
this.name = Translations.t.cyclofix.drinking_water.title;
|
||||
this.icon = "./assets/bike/drinking_water.svg";
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import L from "leaflet";
|
|||
|
||||
export class GhostBike extends LayerDefinition {
|
||||
constructor() {
|
||||
super();
|
||||
super("ghost bike");
|
||||
this.name = "ghost bike";
|
||||
this.overpassFilter = new Tag("memorial", "ghost_bike")
|
||||
this.title = new FixedText("Ghost bike");
|
||||
|
|
|
@ -5,7 +5,7 @@ import {TagRenderingOptions} from "../TagRendering";
|
|||
export class GrbToFix extends LayerDefinition {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
super("grb");
|
||||
|
||||
this.name = "grb";
|
||||
this.presets = [];
|
||||
|
|
|
@ -6,7 +6,7 @@ import {And, Tag} from "../../Logic/TagsFilter";
|
|||
|
||||
export class InformationBoard extends LayerDefinition {
|
||||
constructor() {
|
||||
super({
|
||||
super("informationBoard",{
|
||||
name: "Informatiebord",
|
||||
description: "Een informatiebord of kaart",
|
||||
minzoom: 12,
|
||||
|
|
|
@ -6,7 +6,7 @@ import {And, Tag} from "../../Logic/TagsFilter";
|
|||
|
||||
export class Map extends LayerDefinition {
|
||||
constructor() {
|
||||
super();
|
||||
super("map");
|
||||
this.name = "Map";
|
||||
this.title = new FixedText("Map");
|
||||
this.minzoom = 12;
|
||||
|
|
|
@ -11,7 +11,7 @@ import {ImageCarouselWithUploadConstructor} from "../../UI/Image/ImageCarouselWi
|
|||
export class NatureReserves extends LayerDefinition {
|
||||
|
||||
constructor(moreQuests: boolean = false) {
|
||||
super();
|
||||
super("natureReserve");
|
||||
this.name = "Natuurgebied";
|
||||
this.icon = "";
|
||||
this.overpassFilter =
|
||||
|
|
|
@ -45,7 +45,7 @@ export class Park extends LayerDefinition {
|
|||
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
super("park");
|
||||
this.name = "Park";
|
||||
this.icon = undefined;
|
||||
this.overpassFilter =
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import {LayerDefinition} from "../LayerDefinition";
|
||||
import {Quests} from "../../Quests";
|
||||
import {FixedUiElement} from "../../UI/Base/FixedUiElement";
|
||||
import L from "leaflet";
|
||||
import {Tag} from "../../Logic/TagsFilter";
|
||||
|
@ -7,7 +6,7 @@ import {Tag} from "../../Logic/TagsFilter";
|
|||
export class Toilets extends LayerDefinition{
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
super("toilets");
|
||||
|
||||
this.name="toilet";
|
||||
this.newElementTags = [new Tag( "amenity", "toilets")];
|
||||
|
|
|
@ -8,7 +8,7 @@ import {TagRenderingOptions} from "../TagRendering";
|
|||
export class Viewpoint extends LayerDefinition {
|
||||
|
||||
constructor() {
|
||||
super({
|
||||
super("viewpoint",{
|
||||
name: "Bezienswaardigheid",
|
||||
description: "Wil je een foto toevoegen van iets dat geen park, bos of natuurgebied is? Dit kan hiermee",
|
||||
presets: [{
|
||||
|
|
|
@ -113,7 +113,7 @@ export class Widths extends LayerDefinition {
|
|||
constructor(carWidth: number,
|
||||
cyclistWidth: number,
|
||||
pedestrianWidth: number) {
|
||||
super();
|
||||
super("width");
|
||||
this.carWidth = carWidth;
|
||||
this.cyclistWidth = cyclistWidth;
|
||||
this.pedestrianWidth = pedestrianWidth;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue