Various small fixes to presets, add slow roads to speelplekken-theme

This commit is contained in:
Pieter Vander Vennet 2021-03-14 20:40:54 +01:00
parent a6c004d363
commit f4a59d3a9e
9 changed files with 233 additions and 8 deletions

View file

@ -25,6 +25,7 @@ import * as picnic_tables from "../assets/layers/benches/picnic_tables.json"
import * as play_forest from "../assets/layers/play_forest/play_forest.json"
import * as playground from "../assets/layers/playground/playground.json"
import * as sport_pitch from "../assets/layers/sport_pitch/sport_pitch.json"
import * as slow_roads from "../assets/layers/slow_roads/slow_roads.json"
import LayerConfig from "./JSON/LayerConfig";
import {LayerConfigJson} from "./JSON/LayerConfigJson";
@ -58,7 +59,8 @@ export default class AllKnownLayers {
picnic_tables,
play_forest,
playground,
sport_pitch
sport_pitch,
slow_roads
];
// Must be below the list...

View file

@ -140,8 +140,20 @@ export interface LayerConfigJson {
* NB: if no presets are defined, the popup to add new points doesn't show up at all
*/
presets?: {
/**
* The title - shown on the 'add-new'-button.
*/
title: string | any,
/**
* The tags to add. It determines the icon too
*/
tags: string[],
/**
* The _first sentence_ of the description is shown on the button of the `add` menu.
* The full description is shown in the confirmation dialog.
*
* (The first sentence is until the first '.'-character in the description)
*/
description?: string | any,
}[],