From 8b42a3af50cdd964f3a9c4de8a22a1fae7f37189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Wed, 5 Dec 2018 12:02:10 +0100 Subject: [PATCH] playground access --- playground_access.json | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 playground_access.json diff --git a/playground_access.json b/playground_access.json new file mode 100644 index 0000000..4a5d57b --- /dev/null +++ b/playground_access.json @@ -0,0 +1,45 @@ +{ + "type": "overpass", + "name": { + "en": "Playgrounds (Access)" + }, + "query": { + "14": "nwr[leisure=playground]" + }, + "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" + } +}