diff --git a/swimming_pools_access.json b/swimming_pools_access.json new file mode 100644 index 0000000..bbf57ec --- /dev/null +++ b/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": [ + "
{{ markerCircle({fillColor:color})|raw }} | ", + "{{ value }} | ", + "
{{ markerCircle({\"fillColor\":\"#7f7f7f\"})|raw }} | ", + "other value | ", + "
{{ markerCircle({\"fillColor\":\"#ffffff\"})|raw }} | ", + "no access-tag | ", + "