{ "type": "overpass", "name": { "en": "Recycling", "ru": "Переработка отходов" }, "query": { "12": [ "(", "node[amenity=recycling][recycling_type=centre][operator];", "way[amenity=recycling][recycling_type=centre][operator];", "relation[amenity=recycling][recycling_type=centre][operator];", ")" ], "14": [ "(", "node[amenity=recycling][operator];", "way[amenity=recycling][operator];", "relation[amenity=recycling][operator];", ")" ] }, "feature": { "pre": [ "{% if tags.amenity == 'recycling' %}", " {% set key = 'amenity' %}", " {% set value = tags.amenity %}", " {% if attribute(tags, 'recycling:plastic_bottles') == 'yes' or attribute(tags, 'recycling:plastic') == 'yes' %}", " {% set color='green' %}", " {% endif %}", "{% 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 %}" ], "style": { "color": "{{ color }}" } }, "info": [ "", "{% for kv, data in const %}", " {% if map.zoom >= data.minZoom %}", " {% set key = kv|split('=')[0] %}", " {% set value = kv|split('=')[1] %}", " ", " ", " ", " ", " {% endif %}", "{% endfor %}", " ", " ", " ", " ", "
{{ markerCircle({})|raw }}
{{ data.sign|raw }}
{{ tagTrans('leisure', value) }}
{{ markerCircle({})|raw }}{{ trans('other') }}
" ], "const": { "amenity=recycling": { "minZoom": 13, "sign": "" } } }