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": [ + "
{{ markerCircle({fillColor:color})|raw }} | ", + "{{ value }} | ", + "
{{ markerCircle({\"fillColor\":\"#7f7f7f\"})|raw }} | ", + "other value | ", + "
{{ markerCircle({\"fillColor\":\"#ffffff\"})|raw }} | ", + "no access-tag | ", + "