Add projected_centerpoint as pointrenderingoption

This commit is contained in:
Pieter Vander Vennet 2022-04-22 16:09:55 +02:00
parent 0c31e885e3
commit 0aae923187
8 changed files with 96 additions and 53 deletions

View file

@ -52,7 +52,10 @@
"helperArgs": [
"name",
{
"notInstanceOf": ["Q79007","Q22698"],
"notInstanceOf": [
"Q79007",
"Q22698"
],
"removePostfixes": [
"steenweg",
"heirbaan",
@ -205,6 +208,29 @@
}
]
}
},
{
"location": [
"projected_centerpoint"
],
"label": "<div class='bg-white rounded-full p-x-2'>LABEL</div>",
"icon": {
"render": "pin:#05d7fcaa",
"mappings": [
{
"if": {
"and": [
"name:etymology=",
"name:etymology:wikidata="
]
},
"then": "pin:#fcca05aa"
}
]
},
"iconSize": {
"render": "40,40,center"
}
}
]
}

View file

@ -320,7 +320,7 @@
"en": "What species is this tree?"
},
"render": {
"*":"{wikipedia(species:wikidata):max-height: 25rem}"
"*": "{wikipedia(species:wikidata):max-height: 25rem}"
},
"freeform": {
"key": "species:wikidata",
@ -328,18 +328,25 @@
"helperArgs": [
"species",
{
"instanceOf": [10884, 16521]
}]
"instanceOf": [
10884,
16521
]
}
]
}
},
{
"id": "tree-wikipedia",
"#": "If this tree has a wikipedia article, show it. People can _only_ set the species though!",
"render": {
"*":"{wikipedia()}"
"*": "{wikipedia()}"
},
"condition": {
"or": ["wikipedia~*","wikidata~*"]
"or": [
"wikipedia~*",
"wikidata~*"
]
}
},
{

View file

@ -31,7 +31,7 @@
"de": "Dies ist ein öffentlicher Abfalleimer, in den Sie Ihren Müll entsorgen können."
},
"tagRenderings": [
"images",
"images",
{
"id": "waste-basket-waste-types",
"question": {
@ -294,4 +294,4 @@
}
}
]
}
}