|
|
{ "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" } ] }
|