Browse Source

add generic

playgrounds
Axel Utech 7 years ago
parent
commit
b909c7a4ea
  1. 21
      children.json

21
children.json

@ -27,8 +27,27 @@
]
},
"feature": {
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(tagTrans('leisure', tags.leisure))| default(tagTrans('shop', tags.shop))| default(tagTrans('amenity', tags.amenity))| default(tagTrans('playground', tags.playground)) }}",
"pre": [
"{% if tags.leisure %}",
" {% set key = 'leisure' %}",
" {% set value = tags.leisure %}",
"{% elseif tags.kids_area %}",
" {% set key = 'kids_area' %}",
" {% set value = tags.kids_area %}",
"{% elseif tags.shop %}",
" {% set key = 'shop' %}",
" {% set value = tags.shop %}",
"{% elseif tags.playground %}",
" {% set key = 'playground' %}",
" {% set value = tags.playground %}",
"{% else %}",
" {% set key = 'amenity' %}",
" {% set value = tags.amenity %}",
"{% endif %}"
],
"title": "{{ keyTrans(key) }}: {{localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(tagTrans(key, value)) }}",
"description": [
"{{key}}: {{value}}",
"{% if tags.leisure=='playground' %}",
"{{ tagTrans('leisure', 'playground') }}",
"{% elseif tags.leisure=='summer_camp'%}",

Loading…
Cancel
Save