|
@ -26,7 +26,7 @@ |
|
|
" {% 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' %}", |
|
|
" {% if attribute(tags, 'recycling:plastic_bottles') == 'yes' or attribute(tags, 'recycling:plastic') == 'yes' %}", |
|
|
" {% set color='green' %}", |
|
|
|
|
|
|
|
|
" {% set recycling_color='green' %}", |
|
|
" {% endif %}", |
|
|
" {% endif %}", |
|
|
"{% endif %}", |
|
|
"{% endif %}", |
|
|
"{% set kv = key ~ '=' ~ value %}" |
|
|
"{% set kv = key ~ '=' ~ value %}" |
|
@ -41,7 +41,10 @@ |
|
|
"{% if const[kv] %}", |
|
|
"{% if const[kv] %}", |
|
|
"{{ const[kv].sign|raw }}", |
|
|
"{{ const[kv].sign|raw }}", |
|
|
"{% endif %}" |
|
|
"{% endif %}" |
|
|
] |
|
|
|
|
|
|
|
|
], |
|
|
|
|
|
"markerSymbol": "{{ markerPointer({\"fillColor\": recycling_color })|raw }}", |
|
|
|
|
|
"listMarkerSymbol": "{{ markerCircle({\"fillColor\": recycling_color })|raw }}" |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
"info": [ |
|
|
"info": [ |
|
|
"<table>", |
|
|
"<table>", |
|
@ -64,8 +67,7 @@ |
|
|
"const": { |
|
|
"const": { |
|
|
"amenity=recycling": { |
|
|
"amenity=recycling": { |
|
|
"minZoom": 13, |
|
|
"minZoom": 13, |
|
|
"sign": "<img src='maki:recycling'>", |
|
|
|
|
|
"color": "{{ color }}" |
|
|
|
|
|
|
|
|
"sign": "<img src='maki:recycling'>" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |