|
|
{ "type": "overpass", "name": { "en": "Swimming Pools (Public/Private)" }, "query": { "14": "nwr[leisure=swimming_pool]" }, "feature": { "pre": [ "{% if tags.access %}", "{% set color = const[tags.access]|default('#7f7f7f') %}", "{% else %}", "{% set color = '#ffffff' %}", "{% endif %}" ], "description": "{{ tags.access|default('no value') }}", "markerSymbol": "{{ markerPointer({fillColor:color})|raw }}", "listMarkerSymbol": "{{ markerCircle({fillColor:color})|raw }}" }, "info": [ "<table>", "{% for value, color in const %}", " <tr>", " <td>{{ markerCircle({fillColor:color})|raw }}</td>", " <td>{{ value }}</td>", " </tr>", "{% endfor %}", " <tr>", " <td>{{ markerCircle({\"fillColor\":\"#7f7f7f\"})|raw }}</td>", " <td>other value</td>", " </tr>", " <tr>", " <td>{{ markerCircle({\"fillColor\":\"#ffffff\"})|raw }}</td>", " <td>no access-tag</td>", " </tr>", "</table>" ], "const": { "public": "#00af00", "yes": "#00af00", "permissive": "#afcf00", "private": "#af0000" } }
|