Add example images to presets, fix these in bike_repair_station, add more repair_stand examples, fix fake svgs, wording updates

This commit is contained in:
Pieter Vander Vennet 2022-02-09 03:38:40 +01:00
parent 58cd866e54
commit 186b8a79ac
26 changed files with 171 additions and 190 deletions

View file

@ -192,6 +192,13 @@ export interface LayerConfigJson {
*/
description?: string | any,
/**
* Example images, which show real-life pictures of what such a feature might look like
*
* Type: image[]
*/
exampleImages?: string[]
/**
* If set, the user will prompted to confirm the location before actually adding the data.
* This will be with a 'drag crosshair'-method.

View file

@ -209,6 +209,7 @@ export default class LayerConfig extends WithContextLoader {
tags: pr.tags.map((t) => TagUtils.SimpleTag(t)),
description: Translations.T(pr.description, `${context}.presets[${i}].description`),
preciseInput: preciseInput,
exampleImages: pr.exampleImages
}
return config;
});

View file

@ -11,6 +11,7 @@ export default interface PresetConfig {
title: Translation,
tags: Tag[],
description?: Translation,
exampleImages?: string[],
/**
* If precise input is set, then an extra map is shown in which the user can drag the map to the precise location
*/