Studio: WIP

This commit is contained in:
Pieter Vander Vennet 2023-08-08 13:52:58 +02:00
parent 6ff2c629f0
commit cb538c2303
33 changed files with 608 additions and 2071 deletions

View file

@ -393,6 +393,7 @@ export interface LayerConfigJson {
* This is mainly create questions for a 'left' and a 'right' side of the road.
* These will be grouped and questions will be asked together
*
* type: tagrendering[]
* group: tagrenderings
*
*/

View file

@ -10,7 +10,7 @@ export interface TagRenderingConfigJson {
* question: What text should be rendered?
*
* This piece of text will be shown in the infobox.
* Note that "{key}"-parts are substituted by the corresponding values of the element.
* Note that "&LBRACEkey&RBRACE"-parts are substituted by the corresponding values of the element.
*
* This text will be shown if:
* - there is no mapping which matches (or there are no matches)

View file

@ -233,6 +233,10 @@ export default class TagRenderingConfig {
if (txt.indexOf("{canonical(" + this.freeform.key + ")") >= 0) {
continue
}
if (txt.indexOf("{translated(" + this.freeform.key + ")") >= 0) {
continue
}
if (
this.freeform.type === "opening_hours" &&
txt.indexOf("{opening_hours_table(") >= 0