Add tree height and circumference to tree theme

This commit is contained in:
Pieter Vander Vennet 2022-12-20 20:35:44 +01:00
parent 7e010c0474
commit 9f500858c7

View file

@ -70,44 +70,6 @@
},
"tagRenderings": [
"images",
{
"id": "tree-height",
"render": {
"nl": "Hoogte: {height}",
"en": "Height: {height}",
"it": "Altezza: {height}",
"ru": "Высота: {height}",
"fr": "Hauteur : {height}",
"de": "Höhe: {height}",
"es": "Altura: {height}",
"id": "Tinggi: {height}",
"da": "Højde: {height}"
},
"condition": {
"and": [
"height~*"
]
},
"mappings": [
{
"if": {
"and": [
"height~^[0-9.]+$"
]
},
"then": {
"nl": "Hoogte: {height} m",
"en": "Height: {height} m",
"it": "Altezza: {height} m",
"ru": "Высота: {height} м",
"fr": "Hauteur : {height} m",
"de": "Höhe: {height} m",
"es": "Altura: {height} m",
"da": "Højde: {height} m"
}
}
]
},
{
"id": "plantnet",
"render": "{plantnet_detection()}",
@ -154,6 +116,34 @@
]
}
},
{
"id": "circumference",
"question": {
"en": "What is the circumference of the tree trunk?<p class='subtle'>This is measured at a height of 1.30m</p>"
},
"render": {
"en": "The tree trunk has a circumference of {circumference} meter"
},
"freeform": {
"key": "circumference",
"inline": true,
"type": "pfloat"
}
},
{
"id": "height",
"question": {
"en": "What is the height of this tree?"
},
"freeform": {
"key": "height",
"type": "pfloat",
"inline": true
},
"render": {
"en": "This tree is {height} meter high"
}
},
{
"id": "tree-denotation",
"question": {
@ -811,4 +801,4 @@
"fr": "Une couche montrant les arbres",
"da": "Et lag, der viser træer"
}
}
}