Fix taginfo script, formatting, docs regeneration

This commit is contained in:
Pieter Vander Vennet 2021-07-03 22:00:36 +02:00
parent 2f05010648
commit e3f2c56d3e
5 changed files with 8 additions and 12 deletions

View file

@ -47,8 +47,9 @@ function generateLayerUsage(layer: LayerConfig, layout: LayoutConfig): any [] {
for (const tr of layer.tagRenderings) {
{
const usesImageCarousel = (tr.render?.txt?.indexOf("image_carousel()") ?? -2) > 0
const usesImageUpload = (tr.render?.txt?.indexOf("image_upload()") ?? -2) > 0
const usesImageCarousel = (tr.render?.txt?.indexOf("image_carousel") ?? -2) > 0
const usesImageUpload = (tr.render?.txt?.indexOf("image_upload") ?? -2) > 0
if (usesImageCarousel || usesImageUpload) {
const descrNoUpload = `The layer '${layer.name.txt} shows images based on the keys image, image:0, image:1,... and wikidata, wikipedia, wikimedia_commons and mapillary`;