Add custom theme for advanced users

This commit is contained in:
Pieter Vander Vennet 2020-07-31 04:58:58 +02:00
parent 004eead4ee
commit 9c42839f01
44 changed files with 635 additions and 326 deletions

View file

@ -51,6 +51,7 @@ export class LayerDefinition {
* ])
*/
overpassFilter: TagsFilter;
public readonly id: string;
/**
* This UIElement is rendered as title element in the popup
@ -90,7 +91,7 @@ export class LayerDefinition {
static WAYHANDLING_CENTER_ONLY = 1;
static WAYHANDLING_CENTER_AND_WAY = 2;
constructor(options: {
constructor(id: string, options: {
name: string,
description: string | UIElement,
presets: {
@ -111,6 +112,7 @@ export class LayerDefinition {
icon: any
}
} = undefined) {
this.id = id;
if (options === undefined) {
return;
}
@ -127,6 +129,4 @@ export class LayerDefinition {
this.wayHandling = options.wayHandling ?? LayerDefinition.WAYHANDLING_DEFAULT;
}
}