Browse Source

Color for plastic

master
sembruk 7 years ago
parent
commit
742683d9d0
  1. 8
      recycling.json

8
recycling.json

@ -25,6 +25,9 @@
"{% if tags.amenity == 'recycling' %}", "{% if tags.amenity == 'recycling' %}",
" {% set key = 'amenity' %}", " {% set key = 'amenity' %}",
" {% set value = tags.amenity %}", " {% set value = tags.amenity %}",
" {% if attribute(tags, 'recycling:plastic_bottles') == 'yes' or attribute(tags, 'recycling:plastic') == 'yes' %}",
" {% set color='green' %}",
" {% endif %}",
"{% endif %}", "{% endif %}",
"{% set kv = key ~ '=' ~ value %}" "{% set kv = key ~ '=' ~ value %}"
], ],
@ -38,7 +41,10 @@
"{% if const[kv] %}", "{% if const[kv] %}",
"{{ const[kv].sign|raw }}", "{{ const[kv].sign|raw }}",
"{% endif %}" "{% endif %}"
]
],
"style": {
"color": "{{ color }}"
}
}, },
"info": [ "info": [
"<table>", "<table>",

Loading…
Cancel
Save