Browse Source

Added Recycling category

master
sembruk 6 years ago
parent
commit
60961c4afb
  1. 73
      recycling.json

73
recycling.json

@ -0,0 +1,73 @@
{
"type": "overpass",
"en": "Recycling",
"ru": "Переработка отходов"
},
"query": {
"13": [
"(",
"node[amenity=recycling][recycling_type=centre];",
"way[amenity=recycling][recycling_type=centre];",
"relation[amenity=recycling][recycling_type=centre];",
")"
],
"15": [
"(",
"node[amenity=recycling];",
"way[amenity=recycling];",
"relation[amenity=recycling];",
")"
],
"18": [
"(",
"node[amenity=recycling];",
"way[amenity=recycling];",
"relation[amenity=recycling];",
")"
]
},
"feature": {
"pre": [
"{% if tags.amenity == 'recycling' %}",
" {% set key = 'amenity' %}",
" {% set value = tags.amenity %}",
"{% endif %}",
"{% set kv = key ~ '=' ~ value %}"
],
"description": "{{ tagTrans(key, value) }}",
"body": [
"{% if tags.recycling_type %}",
"{{ keyTrans('recycling_type') }}: {{ tagTrans('recycling_type', tags.recycling_type) }}",
"{% endif %}"
],
"markerSign": [
"{% if const[kv] %}",
"{{ const[kv].sign|raw }}",
"{% endif %}"
]
},
"info": [
"<table>",
"{% for kv, data in const %}",
" {% if map.zoom >= data.minZoom %}",
" {% set key = kv|split('=')[0] %}",
" {% set value = kv|split('=')[1] %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
" <td>{{ tagTrans('leisure', value) }}</td>",
" </tr>",
" {% endif %}",
"{% endfor %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}</td>",
" <td>{{ trans('other') }}</td>",
" </tr>",
"</table>"
],
"const": {
"amenity=recycling": {
"minZoom": 13,
"sign": "<img src='maki:recycling'>"
}
}
}
Loading…
Cancel
Save