Browse Source

swimming_pools_access: new category

name-etym
parent
commit
5861a5ffc6
  1. 45
      swimming_pools_access.json

45
swimming_pools_access.json

@ -0,0 +1,45 @@
{
"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"
}
}
Loading…
Cancel
Save