You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.5 KiB
61 lines
1.5 KiB
{
|
|
"type": "overpass",
|
|
"name": {
|
|
"en": "Edible Trees",
|
|
"de": "Essbare Bäume"
|
|
},
|
|
"query": {
|
|
"14": [
|
|
"(",
|
|
"node[natural=tree][species~\"^(Malus|Pyrus|Morus|Prunus persica|Prunus cerasus)\"];",
|
|
");"
|
|
]
|
|
},
|
|
"feature": {
|
|
"description": "{{ localizedTag(tags, 'species') }}",
|
|
"markerSign": [
|
|
"{% for data in const %}",
|
|
"{% if tags.species|matches(data.match) %}",
|
|
"{{ data.icon }}",
|
|
"{% endif %}",
|
|
"{% endfor %}"
|
|
]
|
|
},
|
|
"info": [
|
|
"<table>",
|
|
"{% for data in const %}",
|
|
" <tr>",
|
|
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.icon }}</div></td>",
|
|
" <td>{{ attribute(data, \"name:en\") }}</td>",
|
|
" </tr>",
|
|
"{% endfor %}",
|
|
"</table>"
|
|
],
|
|
"const": [
|
|
{
|
|
"match": "^Malus",
|
|
"icon": "🍏",
|
|
"name:en": "Apple"
|
|
},
|
|
{
|
|
"match": "^Pyrus",
|
|
"icon": "🍐",
|
|
"name:en": "Pear"
|
|
},
|
|
{
|
|
"match": "^Morus",
|
|
"icon": "M",
|
|
"name:en": "Mulberry"
|
|
},
|
|
{
|
|
"match": "^Prunus persica",
|
|
"icon": "🍑",
|
|
"name:en": "Peach"
|
|
},
|
|
{
|
|
"match": "^Prunus cerasus",
|
|
"icon": "🍒",
|
|
"name:en": "Cherry"
|
|
}
|
|
]
|
|
}
|