A repository for testing purposes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.3 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Playgrounds (Access)"
  5. },
  6. "query": {
  7. "14": "nwr[leisure=playground]"
  8. },
  9. "feature": {
  10. "pre": [
  11. "{% if tags.access %}",
  12. "{% set color = const[tags.access]|default('#7f7f7f') %}",
  13. "{% else %}",
  14. "{% set color = '#ffffff' %}",
  15. "{% endif %}"
  16. ],
  17. "description": "{{ tags.access|default('no value') }}",
  18. "markerSymbol": "{{ markerPointer({fillColor:color})|raw }}",
  19. "listMarkerSymbol": "{{ markerCircle({fillColor:color})|raw }}"
  20. },
  21. "info": [
  22. "<table>",
  23. "{% for value, color in const %}",
  24. " <tr>",
  25. " <td>{{ markerCircle({fillColor:color})|raw }}</td>",
  26. " <td>{{ value }}</td>",
  27. " </tr>",
  28. "{% endfor %}",
  29. " <tr>",
  30. " <td>{{ markerCircle({\"fillColor\":\"#7f7f7f\"})|raw }}</td>",
  31. " <td>other value</td>",
  32. " </tr>",
  33. " <tr>",
  34. " <td>{{ markerCircle({\"fillColor\":\"#ffffff\"})|raw }}</td>",
  35. " <td>no access-tag</td>",
  36. " </tr>",
  37. "</table>"
  38. ],
  39. "const": {
  40. "public": "#00af00",
  41. "yes": "#00af00",
  42. "permissive": "#afcf00",
  43. "private": "#af0000"
  44. }
  45. }