From 5861a5ffc67b5d4b2314179337362ec32aa126d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Tue, 4 Dec 2018 13:56:41 +0100 Subject: [PATCH] swimming_pools_access: new category --- swimming_pools_access.json | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 swimming_pools_access.json 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": [ + "", + "{% for value, color in const %}", + " ", + " ", + " ", + " ", + "{% endfor %}", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + "
{{ markerCircle({fillColor:color})|raw }}{{ value }}
{{ markerCircle({\"fillColor\":\"#7f7f7f\"})|raw }}other value
{{ markerCircle({\"fillColor\":\"#ffffff\"})|raw }}no access-tag
" + ], + "const": { + "public": "#00af00", + "yes": "#00af00", + "permissive": "#afcf00", + "private": "#af0000" + } +}