Porting repair_station to JSON configuration file

This commit is contained in:
Pieter Vander Vennet 2020-09-05 17:43:30 +02:00
parent b7b1bc13e4
commit 9e9d80c045
18 changed files with 455 additions and 503 deletions

View file

@ -5,19 +5,31 @@ import {TagRenderingConfigJson} from "../../Customizations/JSON/TagRenderingConf
export class GenerateEmpty {
public static createEmptyLayer(): LayerConfigJson {
return {
id: undefined,
name: undefined,
minzoom: 0,
id: "yourlayer",
name: "Layer",
minzoom: 12,
overpassTags: {and: [""]},
title: undefined,
title: "Layer",
description: {},
tagRenderings: [],
icon: {
render: "./assets/bug.svg"
},
width: {
render: "8"
},
iconSize:{
render: "40,40,center"
},
color:{
render: "#00f"
}
}
}
public static createEmptyLayout(): LayoutConfigJson {
return {
id: "",
id: "id",
title: {},
description: {},
language: [],