A repository for testing purposes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.3 KiB

{
"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"
}
}